From 1ce31f86c783960eb8f8add1d706e232f3bd4f28 Mon Sep 17 00:00:00 2001 From: flashwave Date: Mon, 18 Mar 2019 21:52:28 +0100 Subject: [PATCH] Fixed oversight of caatastrophic magnitude. --- public/profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/profile.php b/public/profile.php index ccc8c58c..93242510 100644 --- a/public/profile.php +++ b/public/profile.php @@ -24,7 +24,7 @@ $canEdit = !$isBanned && user_session_active() && ( $viewingOwnProfile - || user_check_super($userId) + || user_check_super($currentUserId) || ( perms_check($userPerms, MSZ_PERM_USER_MANAGE_USERS) && user_check_authority($currentUserId, $userId)