Open
Description
Checklist
- I agree to uphold the Code of Conduct.
Description
The way this package checks the ability in Gate prevents me to use permissions (using spatie/permission) that contain :
character. Although I can rename all my permissions, I think that shouldn't be the solution...
// ServiceProviderAbstract
$gate->before(static function (?Authenticatable $user, ?string $ability) {
$guard = auth()->guard();
// ⭐ maybe add one more condition (e.g.) ! config('auth0.enable_rbac')
if (! $guard instanceof GuardContract || ! $user instanceof Authenticatable || ! is_string($ability)) {
return;
}
// ...
});