From 6406645f228223ac7d632ef0193528799ac71b41 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 17 Jun 2021 13:24:34 +0200 Subject: [PATCH] Remove deprecated `Category::$permissions` (#4303) This property has been deprecated for many years (since 2b59736b2592a01ee880f0cc4439622b437acd85) and is just an (internal) copy of `$this->userPermissions[$user->userID]`. --- .../files/lib/data/category/Category.class.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/wcfsetup/install/files/lib/data/category/Category.class.php b/wcfsetup/install/files/lib/data/category/Category.class.php index dd0ef510c8..e6f49e4e09 100644 --- a/wcfsetup/install/files/lib/data/category/Category.class.php +++ b/wcfsetup/install/files/lib/data/category/Category.class.php @@ -58,13 +58,6 @@ class Category extends ProcessibleDatabaseObject implements IPermissionObject, I */ protected $parentCategory; - /** - * acl permissions of this category for the active user - * @deprecated - * @var bool[] - */ - protected $permissions; - /** * acl permissions of this category grouped by the id of the user they * belong to @@ -218,10 +211,6 @@ class Category extends ProcessibleDatabaseObject implements IPermissionObject, I if (!isset($this->userPermissions[$user->userID])) { $this->userPermissions[$user->userID] = CategoryPermissionHandler::getInstance() ->getPermissions($this, $user); - - if ($user->userID == WCF::getUser()->userID) { - $this->permissions = $this->userPermissions[$user->userID]; - } } if (isset($this->userPermissions[$user->userID][$permission])) { -- 2.20.1