Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update role-permissions.md #2631

Merged
merged 2 commits into from
Mar 21, 2024
Merged

Update role-permissions.md #2631

merged 2 commits into from
Mar 21, 2024

Conversation

killjin
Copy link
Contributor

@killjin killjin commented Mar 4, 2024

policy will still be executed

if false , gate before return null

if (method_exists($user, 'checkPermissionTo')) {
                return $user->checkPermissionTo($ability, $guard ?? null) ?: null;
            }

killjin and others added 2 commits March 5, 2024 07:15
@drbyte drbyte merged commit 1702798 into spatie:main Mar 21, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants