check permission model id specific. #2189
Unanswered
technoknol
asked this question in
Q&A
Replies: 2 comments 1 reply
-
You could register your own gate logic with a service provider laravel-permission/src/PermissionServiceProvider.php Lines 26 to 29 in 67e54e2 Or maybe using after https://spatie.be/docs/laravel-permission/v5/basic-usage/super-admin#content-gateafter |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for quick answer. What if I have dynamic permissions and not only one? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How can I check permission of user model specific, like if
$comment->author == $user->id
then it should allow a permission (e.g.edit-own-comment
) ?Beta Was this translation helpful? Give feedback.
All reactions