Jump to:

5542 Posts in 1739 Topics by 1225 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Redirect Group away from CMS

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

Page: 1
Go to End
Author Topic: 988 Views
  • morewordsfaster
    Avatar
    Community Member
    8 Posts

    Redirect Group away from CMS Link to this post

    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?

  • baba-papa
    Avatar
    Community Member
    279 Posts

    Re: Redirect Group away from CMS Link to this post

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

  • Martijn
    Avatar
    Community Member
    271 Posts

    Re: Redirect Group away from CMS Link to this post

    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?

  • morewordsfaster
    Avatar
    Community Member
    8 Posts

    Re: Redirect Group away from CMS Link to this post

    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.

    988 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.