XF 2.2 Accessing groups permission

I've fixed my problem by extending the PermissionEntry entity and i make relation between PermissionEntry and UserGroup,
plus i did function
PHP:
public function hasPermission($group, $permission){
    // code here to check for user_group_id permissions Group id and permission id then return true or false.
}
 
Top Bottom