Adds category permission inheritance
authorMatthias Schmidt <gravatronics@live.com>
Thu, 19 Dec 2013 18:20:39 +0000 (19:20 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 19 Dec 2013 18:20:39 +0000 (19:20 +0100)
wcfsetup/install/files/lib/data/category/Category.class.php

index 417ba855ded987ce3732836538c9abf5b25624c4..408a655f24e7acc20ec4af7ef5b37af105e13f94 100644 (file)
@@ -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;
        }