diff options
author | redmatrix <git@macgirvin.com> | 2016-07-13 23:05:19 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-07-13 23:05:19 -0700 |
commit | 191cd21028ab108c2a7f982c654601d780865eff (patch) | |
tree | 9610f003b964949a135f464d3caff16f28fea1fe /include/channel.php | |
parent | b3a785711cde52a3c03c0a0eb90ce4e9ce8d9059 (diff) | |
download | volse-hubzilla-191cd21028ab108c2a7f982c654601d780865eff.tar.gz volse-hubzilla-191cd21028ab108c2a7f982c654601d780865eff.tar.bz2 volse-hubzilla-191cd21028ab108c2a7f982c654601d780865eff.zip |
more perms work
Diffstat (limited to 'include/channel.php')
-rw-r--r-- | include/channel.php | 6 |
1 files changed, 3 insertions, 3 deletions
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(); } |