[Flow] ACL Problems with initialize Action
Adrian Föder
adrian at foeder.de
Wed Apr 2 11:32:14 CEST 2014
Yep your observation was correct, just answer:
make it...
'method(public Vendor\Package\Controller\StandardController->.*Action())'
(note the `public`), and make all your initialize*Actions `protected`.
So your ACL will only affect public methods, and since your
initialize... actions are, any can be, protected, they are not affected
by ACL AND not exposed since they are... protected.
-adrian
Am 02.04.2014 11:20, schrieb Christian:
> Hi,
>
> there seems to be a problem with my ACL since I updated to Flow 2.1. It
> seems like, the initializeAction of my Controller are being "protected"
> now aswell. The funny thing about it is, that I actually define a
> resource, that should cover all .*Action mehods.
>
> Here the error:
>
> Access denied (0 denied, 0 granted, 1 abstained) to method
> Vendor\Package\Controller\StandardController::initializeAction().
>
> And here the ACL:
>
> resources:
> methods:
> Vendor.Package.StandardController:
> 'method(Vendor\Package\Controller\StandardController->.*Action())'
>
> acls:
> myRole:
> Vendor.Package.StandardController: GRANT
>
>
> Now, this works on normal actions of the controller, but not on
> initializeAction.
>
> How is that even possible?
>
More information about the Flow
mailing list