Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Infinite loop using Gate::allows and Gate::denies or can() #62

Closed
mateusjunges opened this issue May 6, 2019 · 0 comments · Fixed by #63
Closed

Infinite loop using Gate::allows and Gate::denies or can() #62

mateusjunges opened this issue May 6, 2019 · 0 comments · Fixed by #63
Assignees
Labels
bug Something isn't working critical Solve as soon as possible

Comments

@mateusjunges
Copy link
Owner

the isAdmin() function on the UsersTrait is causing a infinite loop while checking for permissions.
The solution is replace the $user->can('admin') with $user->hasPermission('admin')`

@mateusjunges mateusjunges added bug Something isn't working critical Solve as soon as possible labels May 6, 2019
@mateusjunges mateusjunges self-assigned this May 6, 2019
mateusjunges pushed a commit that referenced this issue May 6, 2019
mateusjunges pushed a commit that referenced this issue May 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working critical Solve as soon as possible
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant