Jump to:

23360 Posts in 18097 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » CMS Admin, not Security Admin

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
Go to End
Author Topic: 686 Views
  • Martiman
    Avatar
    Community Member
    7 Posts

    CMS Admin, not Security Admin Link to this post

    Hi,

    I would like to add user account who could edit everything in the CMS (page content, page types, metatags, ... so everything under 'Site Content'), but could NOT reach everything under Security.

    So, I gave them the permission 'Access to Site Content (CMSMain)'. But that seems to be only view permission, since they could not edit the content.

    Is it possible to give them permission to (only) the tab 'Site Content', including edit permissions?

  • Martiman
    Avatar
    Community Member
    7 Posts

    Re: CMS Admin, not Security Admin Link to this post

    I think this function is trivial for a good CMS. It could not be the case that this functionality is absent in Silverstripe and nobody noticing. There must be lots of people out there wanting to give users permissions to be content-manager but no permissions to other parts of the admin panel (like the permission page).

    Does really nobody has any idea?

  • Martiman
    Avatar
    Community Member
    7 Posts

    Re: CMS Admin, not Security Admin Link to this post

    Can any of the developers explain why this is not possible with SilverStripe? It is not very helpful if essential functions are absent and nobody could explain why, or when it will be available..

  • swaiba
    Avatar
    Forum Moderator
    1784 Posts

    Re: CMS Admin, not Security Admin Link to this post

    Hi,

    You can do this, I've not had a problem with this, but with a little programming...

    _config.php

    Object::add_extension('LeftAndMain', 'MyLeftAndMainDecorator');

    MyLeftAndMainDecorator.php

    class MyLeftAndMainDecorator extends LeftAndMainDecorator {
    function init() {
    //do some logical test, like if the user is in some group or not your admin email etc...
    CMSMenu::remove_menu_item('SecurityAdmin');
    }
    }

    686 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.