XF 2.2 Empty permissions on extended node permissions

RisteDimitrievski

Active member
Hello everyone, i'm still learning about xenforo now i have a few questions.

I've created my custom category tree by extending AbstractCategoryTree, and made custom permissions and extended AbstractPermission and extended TreeContentPermissions also AbstractPermission

But when i browse to edit permissions on some groups i see empty permissions there
1662185775975.png

Does node permissions are created somewhere else than Development > Permission Definitions ?
 
Solution
Actually i've fixed the problem. It was typo in class CategoryPermissions that are extending TreeContentPermission

Code:
public function isValidPermission(\XF\Entity\Permission $permission)

Wrong permission group id set.

RisteDimitrievski

Active member
Actually i've fixed the problem. It was typo in class CategoryPermissions that are extending TreeContentPermission

Code:
public function isValidPermission(\XF\Entity\Permission $permission)

Wrong permission group id set.
 
Solution
Top