• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Ban link missing from membercard (1.1.0 Beta 3)

R

ragtek

Guest
#3
A bug:D

PHP:
'canBanUsers' => ($visitor->hasAdminPermission('ban') && !$user['user_id'] == $visitor->getUserId() && !$user['is_admin'] && !$user['is_moderator']),
should be
PHP:
'canBanUsers' => ($visitor->hasAdminPermission('ban') && $user['user_id'] != $visitor->getUserId() && !$user['is_admin'] && !$user['is_moderator']),
in XenForo_ControllerPublic_Member
 

Lawrence

Well-known member
#5
A bug:D

PHP:
'canBanUsers' => ($visitor->hasAdminPermission('ban') && !$user['user_id'] == $visitor->getUserId() && !$user['is_admin'] && !$user['is_moderator']),
should be
PHP:
'canBanUsers' => ($visitor->hasAdminPermission('ban') && $user['user_id'] != $visitor->getUserId() && !$user['is_admin'] && !$user['is_moderator']),
in XenForo_ControllerPublic_Member
Thanks for confirming, and more importantly providing a fix, :)