LostKobrakai Posted March 21, 2016 Share Posted March 21, 2016 With pages it's possible to circumvent access control manually in templates, but I've an page action module I'd like to control the access to in the backend. But this does prevent me from triggering the page action from my templates via the api, as users might not have enough access rights to use it. Is there any way around this? Link to comment Share on other sites More sharing options...
Martijn Geerts Posted March 21, 2016 Share Posted March 21, 2016 Maybe when you add page-view permission to the info array of that module? Link to comment Share on other sites More sharing options...
LostKobrakai Posted March 21, 2016 Author Share Posted March 21, 2016 Even guests have page-view access. Shouldn't this therefore deny the backend access control. Essentially I don't want all editors to be able to batch geocode addresses, but I'd like to use the module to geocode single instances in my templates. Link to comment Share on other sites More sharing options...
kixe Posted March 22, 2016 Share Posted March 22, 2016 I think in your template you can extend the users role on runtime. $user->set('roles',41); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now