2

I only want a particular action to be available to certain user types. Is there a way to 'bake' this in when I register the action in my module install file, or do I need to check authorisation in the actual action method?

2

Actions (to clarify - entries in EE's exp_actions table) have no member group associations. If you want to allow only specific members or member groups to run an action, you will indeed need to write this logic inside your action method.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.