-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
permission revoke based on ids as well #2552
permission revoke based on ids as well #2552
Conversation
There is no change |
Added missing logic.. Need to support both using id & name when revoking permission. Ideally this can be a mixture of id & name that could also be done. Thanks to pointing out the missing code :-) |
Still, is 09ebf39 a refactor? |
Yes I found some tweaks & fix it.. my docker is crashing & unable to test.. would be great if you review it carefully.. |
Seems that #2548 does the same, test it |
That's something else.. This change belongs to revoking permission given as int (primary key of permission table). Currently, it is only supporting based on name. |
That is exactly what #2548 is adding |
Yes it is also doing the same what I'm trying to achieve but to me it seems not optimized way to do that.. correct me if I'm wrong. That code is finding each individual record from db either based on it or string. but the good thing is that it is revoking based on both primary key & name column |
On |
yes but for very rare and edge case if we don't have cache stored at certain point. but still acceptable because of edge case. |
The documentation should also be updated, it says that it only accepts string or Permission object laravel-permission/docs/basic-usage/role-permissions.md Lines 93 to 94 in 641bc2f
|
yes and also |
Dear contributor, because this pull request seems to be inactive for quite some time now, I've automatically closed it. If you feel this pull request deserves some attention from my human colleagues feel free to reopen it. |
No description provided.