Update:Remora Permissions: Difference between revisions

Jump to navigation Jump to search
Line 37: Line 37:


Normally this would be done in an action.  I was not able to use this in a beforeFilter, because that would access member variables and functions not yet loaded.
Normally this would be done in an action.  I was not able to use this in a beforeFilter, because that would access member variables and functions not yet loaded.
I '''was''' able to use this even when I was in an action that was in the aclExceptions array.
I '''was not''' able to use this when ->enabled=false for SimpleAcl and SimpleAuth.  It seems that disabling the components render them useless.  So that means that for all-public controllers, if you want to access permission data you'll have to use aclExceptions instead of using the beforeFilter method of turning off permissions.  If you don't, you'll get false for all inquiries because the components are disabled.


== Disabling Permissions in Controllers ==
== Disabling Permissions in Controllers ==
3,035

edits

Navigation menu