laravel-auth0 icon indicating copy to clipboard operation
laravel-auth0 copied to clipboard

Can disable ability and scope checking

Open margarizaldi opened this issue 1 year ago • 0 comments

Changes

It can disable the ability and scope checking in Gate to not bother application that implement its own RBAC, especially for those having existing permissions with : character and takes advantage of can method such as spatie/permission.

I think this is important since:

  • The Gate interception avoids us to use colon as permission name for our own rbac implementation
  • using colon, such as view:user, create:post, etc is common practice
  • Auth0 RBAC feature is optional after all

Also I believe that this PR won't introduce any breaking change.

References

#457

Testing

Anyone please help me adding tests to this PR 😃

Contributor Checklist

margarizaldi avatar Jul 18 '24 09:07 margarizaldi