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?
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.
The easiest way to do this without any code: Install the Forum-Modul. Than you have a group "Forum-Members", which you can subclass.
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?
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. :)