more perms work

This commit is contained in:
redmatrix
2016-07-13 23:05:19 -07:00
parent b3a785711c
commit 191cd21028
5 changed files with 48 additions and 33 deletions

View File

@@ -1604,13 +1604,13 @@ function notifications_on($channel_id,$value) {
function get_channel_default_perms($uid) {
$r = q("select abook_my_perms from abook where abook_channel = %d and abook_self = 1 limit 1",
$r = q("select abook_xchan from abook where abook_channel = %d and abook_self = 1 limit 1",
intval($uid)
);
if($r)
return $r[0]['abook_my_perms'];
return load_abconfig($uid,$r[0]['abook_xchan'],'my_perms');
return 0;
return array();
}