aboutsummaryrefslogtreecommitdiffstats
path: root/include/chat.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-12 13:46:25 -0800
committerfriendica <info@friendica.com>2014-02-12 13:46:25 -0800
commit1ca85abf83d95eb49f9b7ffbbda5f01de40388e5 (patch)
tree069e611ceb07f08c555a33dfb81edcab3ea958b1 /include/chat.php
parent7c0101899da879dc52008bd9c0445d4a24ab9fcb (diff)
parenta14df3ab72e58ea9d60ef79edf66b51cb3107f46 (diff)
downloadvolse-hubzilla-1ca85abf83d95eb49f9b7ffbbda5f01de40388e5.tar.gz
volse-hubzilla-1ca85abf83d95eb49f9b7ffbbda5f01de40388e5.tar.bz2
volse-hubzilla-1ca85abf83d95eb49f9b7ffbbda5f01de40388e5.zip
Merge https://github.com/friendica/red into zpull
Diffstat (limited to 'include/chat.php')
-rw-r--r--include/chat.php6
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
+}