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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

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

Redirect Group away from CMS


Go to End


4 Posts   1540 Views

Avatar
morewordsfaster

Community Member, 8 Posts

2 December 2009 at 7:10am

I've created a user group of basic users that should only be allowed to view content, however they are able to access the CMS and I don't want them to be able to. I've been trying to find a good place to slip in a check to see if someone is a member of this group and run a redirect upon attempting to access the /admin/ area, but have yet to find it. Anyone know where a good place for this would be?

Avatar
baba-papa

Community Member, 279 Posts

5 December 2009 at 1:32am

The easiest way to do this without any code: Install the Forum-Modul. Than you have a group "Forum-Members", which you can subclass.

Avatar
Martijn

Community Member, 271 Posts

5 December 2009 at 2:00am

Why don't you just create a group without cms and admin access.

They can then login and view content which is set to loggedin users, but don't have backend access....

Or am I missing something?

Avatar
morewordsfaster

Community Member, 8 Posts

6 December 2009 at 8:00am

I might have a look at the Forum module's user group to see how that's done, but for now I went ahead and added the redirect upon login bit of this recipe into the external authentication module on my install. Also editted LeftandMain's init() to redirect if the user is not a member of the Administrators group. Works for now. :)