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

Conversation

Projects
None yet
3 participants
@RayDabbah
Copy link
Contributor

RayDabbah commented Mar 12, 2019

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

2 checks passed

continuous-integration/styleci/pr The analysis has passed
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@RayDabbah RayDabbah deleted the RayDabbah:deny-if-none branch Mar 13, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.