1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/15591] Add jabber permission check

We want to make jabber address unvisible for those users who are not allowed
to send instant (jabber) messages.

PHPBB3-15591
This commit is contained in:
ansavin
2020-05-05 21:12:42 +03:00
parent 8877688ee4
commit 79ea63f164
2 changed files with 3 additions and 3 deletions

View File

@@ -958,7 +958,7 @@ switch ($mode)
$sort_key_text = array('a' => $user->lang['SORT_USERNAME'], 'c' => $user->lang['SORT_JOINED'], 'd' => $user->lang['SORT_POST_COUNT']);
$sort_key_sql = array('a' => 'u.username_clean', 'c' => 'u.user_regdate', 'd' => 'u.user_posts');
if ($config['jab_enable'])
if ($config['jab_enable'] && $auth->acl_get('u_sendim'))
{
$sort_key_text['k'] = $user->lang['JABBER'];
$sort_key_sql['k'] = 'u.user_jabber';