From: Matthias Schmidt Date: Thu, 19 Dec 2013 18:20:39 +0000 (+0100) Subject: Adds category permission inheritance X-Git-Tag: 2.0.1~31^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=df387094c8e85eb986f254085ce70b9ecf974777;p=GitHub%2FWoltLab%2FWCF.git Adds category permission inheritance --- diff --git a/wcfsetup/install/files/lib/data/category/Category.class.php b/wcfsetup/install/files/lib/data/category/Category.class.php index 417ba855de..408a655f24 100644 --- a/wcfsetup/install/files/lib/data/category/Category.class.php +++ b/wcfsetup/install/files/lib/data/category/Category.class.php @@ -156,6 +156,10 @@ class Category extends ProcessibleDatabaseObject implements IPermissionObject, I return $this->permissions[$permission]; } + if ($this->getParentCategory()) { + return $this->getParentCategory()->getPermission($permission); + } + return false; }