From 191cd21028ab108c2a7f982c654601d780865eff Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 13 Jul 2016 23:05:19 -0700 Subject: more perms work --- include/channel.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/channel.php') diff --git a/include/channel.php b/include/channel.php index 95506ed78..28eac9d4c 100644 --- a/include/channel.php +++ b/include/channel.php @@ -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(); } -- cgit v1.2.3