Fixed dumb oversight on profiles.

This commit is contained in:
flash 2020-06-04 20:30:46 +00:00
parent 0bf8fde6c2
commit baaf3738f0

View file

@ -31,9 +31,9 @@ $userPerms = perms_get_user($currentUserId)[MSZ_PERMS_USER];
$canManageWarnings = perms_check($userPerms, MSZ_PERM_USER_MANAGE_WARNINGS);
$canEdit = !$isBanned
&& UserSession::hasCurrent()
&& ($viewingOwnProfile || $currentUserId->isSuper() || (
&& ($viewingOwnProfile || $currentUser->isSuper() || (
perms_check($userPerms, MSZ_PERM_USER_MANAGE_USERS)
&& $currentUserId->hasAuthorityOver($profileUser)
&& $currentUser->hasAuthorityOver($profileUser)
));
if($isEditing) {