From baaf3738f0dd7efe43dffee316d8fcb4baa7d296 Mon Sep 17 00:00:00 2001 From: flashwave Date: Thu, 4 Jun 2020 20:30:46 +0000 Subject: [PATCH] Fixed dumb oversight on profiles. --- public/profile.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/profile.php b/public/profile.php index 2079fa29..75eac8e3 100644 --- a/public/profile.php +++ b/public/profile.php @@ -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) {