Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Access in actions

Go to End

2 Posts   671 Views


Community Member, 9 Posts

3 May 2013 at 7:51pm

Is there any way that i can check which action was accessed? for example for Register action on a Sign Up Page, i can access this without having to login then if i just access the page without any action i am required to login.

Example: <-- has to be logged in <-- no need to be logged in.


Forum Moderator, 5523 Posts

5 May 2013 at 4:28pm

You can require permissions in the $url_handlers helper or in your actions method.

function youraction() {
if (!Member::currentUser()) {
return Security::permissionFailure();

// rest of youraction ..