From df387094c8e85eb986f254085ce70b9ecf974777 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 19 Dec 2013 19:20:39 +0100 Subject: [PATCH] Adds category permission inheritance --- 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 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; } -- 2.20.1