Jump to:

23370 Posts in 18145 Topics by 2864 members

General Questions

SilverStripe Forums » General Questions » User Guide or Idiot's Guide to Permissions

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

Page: 1 2
Go to End
Author Topic: 2351 Views
  • RichHead
    Avatar
    Community Member
    13 Posts

    User Guide or Idiot's Guide to Permissions Link to this post

    Hi,

    Have just started using SilverStripe and love what it allows me to achieve for my village community site (see http://thruxtonvillage.com); however, at the moment this is all maintained by me via Admin and I'd like to be able to open certain pages to the relevant persons in the village.

    For the life of me I cannot work out how the permissions/groups etc. are supposed to work.

    Is there an idiot's guide somewhere for someone like me (an idiot!)

    Thanks

    Rich

  • RichHead
    Avatar
    Community Member
    13 Posts

    Re: User Guide or Idiot's Guide to Permissions Link to this post

    Does the lack of response mean that no-one knows, or that I should have found this myself, if the latter - believe me - I have searched, but seem unable to find anything that can help.

    I just cannot work out how the security / groups are supposed to work...

  • ajshort
    Avatar
    Community Member
    244 Posts

    Re: User Guide or Idiot's Guide to Permissions Link to this post

    The really quick overview is that permission codes are used to check if a user can do something - these are just arbitrary strings like CREATE_THIS, EDIT_THAT. Each Group can have several permission codes attached to it, and each Member can be a member of multiple groups. This is how permissions work for things like CMS access.

    For page viewing it's a little different. Each Page has a relationship to many groups - you can manage this in the Access tab. If you specify access only to the selected groups, then when the page is requested the system will check if the current member belongs to one of the groups you selected. If they are, they are shown the page.

  • RichHead
    Avatar
    Community Member
    13 Posts

    Re: User Guide or Idiot's Guide to Permissions Link to this post

    AJShort - thanks for the response, I'll see if I can put that into practice, I have set all pages to be viewable to all, but want to restrict access to the edit functions different users different screens

  • StuM
    Avatar
    Community Member
    56 Posts

    Re: User Guide or Idiot's Guide to Permissions Link to this post

    If you're restricting the edit function, you'd do something like:

    1. In security, create a group
    2. Add a user to that group
    3. In the CMS, open the page and change the 'Who can edit this page?' in the access tab to the group you've just created.

    You may need to do step 3 on any pages you wouldn't want edited by just anybody as well, set the 'Who can edit this page?' to administrators, that could be the default though, I'm not 100% sure

    Hope this helps.

  • RichHead
    Avatar
    Community Member
    13 Posts

    Re: User Guide or Idiot's Guide to Permissions Link to this post

    Ah!

    The penny is beginning to drop...

    Thanks guys

    Rich

  • RichHead
    Avatar
    Community Member
    13 Posts

    Re: User Guide or Idiot's Guide to Permissions Link to this post

    Ok, I have been playing a bit and can restrict (edit) access to certain individuals to certain pages... but...

    2) How do I provide (restricted) access to certain people so that they can upload files to specific directories (so they have PDF, images etc, they can use on their pages)?
    3) How do I prevent a user deleting a page or re-ordering the pages on the site?

  • RichHead
    Avatar
    Community Member
    13 Posts

    Re: User Guide or Idiot's Guide to Permissions Link to this post

    Can anyone help with the latest questions?

    Also, is there a way to upload a file directly into a page (akin to Wordpress), rather than having to load the file first?

    2351 Views
Page: 1 2
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.