diff options
author | marijus <mario@localhost.localdomain> | 2014-02-12 21:31:11 +0100 |
---|---|---|
committer | marijus <mario@localhost.localdomain> | 2014-02-12 21:31:11 +0100 |
commit | e06d9e97c56d119c35c59ba65c7437a28115e4a0 (patch) | |
tree | 49d958acaf126df3498ae61b58798719bc232e61 /include/chat.php | |
parent | e47035f85a680344f2d5f58971ca2629c70c7838 (diff) | |
download | volse-hubzilla-e06d9e97c56d119c35c59ba65c7437a28115e4a0.tar.gz volse-hubzilla-e06d9e97c56d119c35c59ba65c7437a28115e4a0.tar.bz2 volse-hubzilla-e06d9e97c56d119c35c59ba65c7437a28115e4a0.zip |
make chatrooms in /chat/channel visible to observers aswell
Diffstat (limited to 'include/chat.php')
-rw-r--r-- | include/chat.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/chat.php b/include/chat.php index fb1d4fe65..5a17230e0 100644 --- a/include/chat.php +++ b/include/chat.php @@ -173,10 +173,12 @@ function chatroom_leave($observer_xchan,$room_id,$client) { function chatroom_list($uid) { + require_once('include/security.php'); + $sql_extra = permissions_sql($uid); - $r = q("select cr_name, cr_id, count(cp_id) as cr_inroom from chatroom left join chatpresence on cr_id = cp_room where cr_uid = %d group by cr_name order by cr_name", + $r = q("select cr_name, cr_id, count(cp_id) as cr_inroom from chatroom left join chatpresence on cr_id = cp_room where cr_uid = %d $sql_extra group by cr_name order by cr_name", intval($uid) ); return $r; -}
\ No newline at end of file +} |