From fdb5b272efed4614ffe494131216446b1f76ca37 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 20 Dec 2024 16:08:47 +0100 Subject: [PATCH] Remove live-check of the `canHideOnlineStatus` permission The live check means that the user's group assignments and permissions had to be loaded. This is particularly unfavorable in places where many users are displayed (such as the member list). --- wcfsetup/install/files/lib/data/user/UserProfile.class.php | 1 - 1 file changed, 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/user/UserProfile.class.php b/wcfsetup/install/files/lib/data/user/UserProfile.class.php index ba335761a8..a2037c57f0 100644 --- a/wcfsetup/install/files/lib/data/user/UserProfile.class.php +++ b/wcfsetup/install/files/lib/data/user/UserProfile.class.php @@ -470,7 +470,6 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { return WCF::getUser()->userID == $this->userID || WCF::getSession()->getPermission('admin.user.canViewInvisible') - || !$this->getPermission('user.profile.canHideOnlineStatus') || $this->isAccessible('canViewOnlineStatus'); } -- 2.20.1