mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
Merge pull request #5971 from ansavin/ticket/15591
[ticket/15591] Add jabber permission check
This commit is contained in:
commit
4eda5218d5
2 changed files with 3 additions and 3 deletions
|
@ -1695,8 +1695,8 @@ function phpbb_show_profile($data, $user_notes_enabled = false, $warn_user_enabl
|
||||||
'U_EMAIL' => $email,
|
'U_EMAIL' => $email,
|
||||||
'U_JABBER' => ($data['user_jabber'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&action=jabber&u=' . $user_id) : '',
|
'U_JABBER' => ($data['user_jabber'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&action=jabber&u=' . $user_id) : '',
|
||||||
|
|
||||||
'USER_JABBER' => ($config['jab_enable']) ? $data['user_jabber'] : '',
|
'USER_JABBER' => ($config['jab_enable'] && $auth->acl_get('u_sendim')) ? $data['user_jabber'] : '',
|
||||||
'USER_JABBER_IMG' => ($config['jab_enable'] && $data['user_jabber']) ? $user->img('icon_contact_jabber', $data['user_jabber']) : '',
|
'USER_JABBER_IMG' => ($config['jab_enable'] && $auth->acl_get('u_sendim') && $data['user_jabber']) ? $user->img('icon_contact_jabber', $data['user_jabber']) : '',
|
||||||
|
|
||||||
'L_SEND_EMAIL_USER' => $user->lang('SEND_EMAIL_USER', $username),
|
'L_SEND_EMAIL_USER' => $user->lang('SEND_EMAIL_USER', $username),
|
||||||
'L_CONTACT_USER' => $user->lang('CONTACT_USER', $username),
|
'L_CONTACT_USER' => $user->lang('CONTACT_USER', $username),
|
||||||
|
|
|
@ -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_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');
|
$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_text['k'] = $user->lang['JABBER'];
|
||||||
$sort_key_sql['k'] = 'u.user_jabber';
|
$sort_key_sql['k'] = 'u.user_jabber';
|
||||||
|
|
Loading…
Add table
Reference in a new issue