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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

SilverStripe User Roles


Reply


4 Posts   548 Views

Avatar
ptvw

Community Member, 10 Posts

27 August 2012 at 11:56pm

Hi -

I'm thinking of using Silver Stripe for a new site which requires two member user roles. The members will have access to different site areas when they have logged in as members of the site.

Is this a fairly easy task to accomplish in Silver Stripe?

Is there any documentation that I can read which would go about explaining how to implement this is SS?

Any help or advice would be greatly appreciated.

Many Thanks

ptvw

Avatar
ptvw

Community Member, 10 Posts

27 August 2012 at 11:59pm

Just to avoid any confusion im talking about user roles that arent associated with logging into the CMS but rather users of the site

Avatar
Willr

Forum Moderator, 5513 Posts

30 August 2012 at 8:45pm

User permissions (and roles) can be used for backend, frontend, api.. same system. You could provide a couple new permission codes then check for these permissions in your controller actions. Or, without touching code, you can set simple view access permissions to individual pages based on groups from the CMS (under each pages 'access' tab).

For more information on setting custom permssions see http://doc.silverstripe.org/framework/en/reference/permission

Avatar
ptvw

Community Member, 10 Posts

3 September 2012 at 1:56am

Thanks for the information!