more perms work
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user