-
Notifications
You must be signed in to change notification settings - Fork 141
Open
Labels
Scope: ImprovementProposed improvements, or feature additions.Proposed improvements, or feature additions.
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;
}
// ...
});Metadata
Metadata
Assignees
Labels
Scope: ImprovementProposed improvements, or feature additions.Proposed improvements, or feature additions.