-
Notifications
You must be signed in to change notification settings - Fork 91
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
ACL deny, then grant not working as expected. #122
Comments
Hmm, I couldn't reproduce the issue in Croogo (it uses the same plugin). Eg:
When you say "wouldn't actually work", are you saying that accessing the action from browser didn't work or using If still denied from browser, tt maybe related to cache or cookie, so clear you cache/cookie and retry. |
@rchavik Ah, I wasn't testing access using |
Can you double check your Acl component is not configured using CachedDbAcl adapter? |
@rchavik sorry, where do I check this setting? Thanks. |
It's configured via |
This is whats in my
I'm not sure if its worth mentioning, but I have multiple AppControllers (for an API, and a management section), all with the above |
No, the setting we need to check is What is the output of |
This what you want? That is the default config, I haven't changed anything out of the box. |
Yes. So it's probably set using the default. Hmm. I can't think of anything else. I'll try to repro using a clean cake app when I have time. No promises though |
From @notoriousturtle on July 6, 2017 6:26
bug
feature request (see bottom of post)
CakePHP Version: 3.7.7
Platform and Target: 7.0.18-0ubuntu0.16.04.1
What you did, what happened
Trying to grant access to an
aco
when it has already been denied at least once does not work. I encountered this problem when trying to grant my administrative users access to a particularaco
that I had denied previously.This would say
Permission granted
, but wouldn't actually work:After messing with it for a while I tried to recover
aro
/aco
. This didnt help.I resolved this by deleting the
aco
, then granting permission again, like so:Then when I accessed the
aco
as an administratively grouped user it worked.What you expected to happen
I expect deny, then granting again to allow access to the
aco
.Also, is it possible to get a bit more documentation on Cake's ACL stuff. Also, is there any way I can get a listing of all permissions for a specific
aco
, such as/manage/Tracks/index
? And is there a way to get a list of whataco
's a user group has access to? Thanks.Copied from original issue: cakephp/cakephp#10869
The text was updated successfully, but these errors were encountered: