RisteDimitrievski
Active member
I would suggest extending the permissions for groups too. Currently XenForo by it's standards does not support permissions based on group, i would suggest to implement something like:
Sometimes in your code you don't need a user permission, you'll need group permission.
This is currently possible if we make custom entity which will check in permission entry table and then make relations with UserGroup entity after that make hasPermission($group, $permission).
PHP:
\XF::group()->hasPermission($group,$permission) // return true or false;
the group() will be instance of User Groups, and function hasPermission will be instance of
Permission entry table which relations user_group_id , group.user_group_id.
Sometimes in your code you don't need a user permission, you'll need group permission.
This is currently possible if we make custom entity which will check in permission entry table and then make relations with UserGroup entity after that make hasPermission($group, $permission).
Upvote
0