[FLOW3-general] [SOLVED] Problem with setting proper methods-based policies
François Suter
fsu-lists at cobweb.ch
Thu Oct 25 14:21:27 CEST 2012
Hi all,
> resources:
> methods:
> Cobweb_Monitoring_EventManagement:
> 'method(Cobweb\Monitoring\Controller\EventController->(.*)Action())'
> Cobweb_Monitoring_Timeline:
> 'method(Cobweb\Monitoring\Controller\EventController->timelineAction())'
> roles:
> Administrator: []
> Client: []
> acls:
> Administrator:
> methods:
> Cobweb_Monitoring_EventManagement: GRANT
> Client:
> methods:
> Cobweb_Monitoring_Timeline: GRANT
I found the solution to my problem. Actually I've been a bad boy and
hadn't looked at the Security_Development log (I guess I'm not used yet
to having these logs at disposal). The log told me that the security
framework was unhappy about giving access to the "initialize" action.
So changing my resource to:
Cobweb_Monitoring_Timeline:
'method(Cobweb\Monitoring\Controller\EventController->(initialize|timeline)Action())'
solved my problem.
Thanks anyway for the help and sorry for the trouble.
--
Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
More information about the FLOW3-general
mailing list