laratrust
laratrust copied to clipboard
update user permission scope to support team assignment checking
This updates the LaratrustHasScopes::scopeWherePermissionIs
method to mirror the behaviour of the LaratrustHasScopes::scopeWhereRoleIs
and support team assignment checking in the scope.
The LaratrustHasScopes::scopeOrWherePermissionIs
has been updated in the same fashion. I have derived the query logic from the role method, and added a new team based test to validate the functionality.