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

[5.8] Deny access to user if he has none of these abilities #27859

Merged
merged 3 commits into from
Mar 13, 2019
Merged

[5.8] Deny access to user if he has none of these abilities #27859

merged 3 commits into from
Mar 13, 2019

Conversation

RayDabbah
Copy link
Contributor

Currently it is only possible to check if a user is 1 of multiple permissions. i.e. Gate::forUser($user)->denies('update-post', $post) It not possible to check if a user is authorized for none of multiple abilities.

@driesvints driesvints changed the title deny access to user if he has none of these abilities [5.8] Deny access to user if he has none of these abilities Mar 12, 2019
@taylorotwell taylorotwell merged commit 67cb3a4 into laravel:5.8 Mar 13, 2019
@RayDabbah RayDabbah deleted the deny-if-none branch March 13, 2019 14:17
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.

3 participants