if someone does not have permission to chat do not show the chatrooms tab
This commit is contained in:
parent
7d9f785758
commit
fc704d1f2f
@ -1551,6 +1551,7 @@ function profile_tabs($a, $is_owner=False, $nickname=Null){
|
||||
);
|
||||
}
|
||||
|
||||
if($p['chat']) {
|
||||
require_once('include/chat.php');
|
||||
$has_chats = chatroom_list_count($uid);
|
||||
if ($has_chats) {
|
||||
@ -1562,6 +1563,7 @@ function profile_tabs($a, $is_owner=False, $nickname=Null){
|
||||
'id' => 'chat-tab',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
require_once('include/menu.php');
|
||||
$has_bookmarks = menu_list_count(local_user(),'',MENU_BOOKMARK) + menu_list_count(local_user(),'',MENU_SYSTEM|MENU_BOOKMARK);
|
||||
|
Reference in New Issue
Block a user