laratrust icon indicating copy to clipboard operation
laratrust copied to clipboard

update user permission scope to support team assignment checking

Open splatEric opened this issue 3 years ago • 0 comments

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.

splatEric avatar Mar 26 '21 14:03 splatEric