Skip to content

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

Merged
taylorotwell merged 3 commits intolaravel:5.8from
RayDabbah:deny-if-none
Mar 13, 2019
Merged

[5.8] Deny access to user if he has none of these abilities#27859
taylorotwell merged 3 commits intolaravel:5.8from
RayDabbah:deny-if-none

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