From 4c6a3ef41b772dc7a652c361a02013e620be9bdc Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Tue, 19 Aug 2014 19:11:09 +0200 Subject: [PATCH] Improve default category permission implementation --- wcfsetup/install/files/lib/data/category/Category.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wcfsetup/install/files/lib/data/category/Category.class.php b/wcfsetup/install/files/lib/data/category/Category.class.php index dd7db4e8d4..bf42a494c0 100644 --- a/wcfsetup/install/files/lib/data/category/Category.class.php +++ b/wcfsetup/install/files/lib/data/category/Category.class.php @@ -166,6 +166,10 @@ class Category extends ProcessibleDatabaseObject implements IPermissionObject, I return $this->getParentCategory()->getPermission($permission); } + if ($this->getObjectType()->defaultpermission !== null) { + return $this->getObjectType()->defaultpermission ? true : false; + } + return $this->defaultPermission; } -- 2.20.1