Hi there
We have recently launched our new company website using silverstripe. I am currently the administrator. We have some restricted pages accessible to registered members. I would like to set a group for some of our staff. I would like to have access to the Security area of the CMS only and I would like them to have the 'Add members button' available. This is so the can add some of our customers as members so they can access restricted content. Currently this feature is only available to administrators. I don't want them to be administrators.
How easy is it to change this?
Cheers Stuart
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.
Hi Stuart,
This is an easy thing to get sorted out with a full clicks and then you're set.
Go to the Security section of the SilverStripe CMS backend, and then go into the Groups tab. You'll by default land on the "Users" tab, so when you go into the Groups tab - click onto "Add Group".
Name it, select a parent group if you wish (it can be left blank).
And don't click "Save" just yet. Click onto the Permissions tab and you'll be given a list of checkboxes. Under CMS Access, find and check the box for "Access to 'Security' section". Now hit "Save".
When you hit save, you should be in the group (you just created) user manager in the Security section. Add your staff members and you're all set!
Cheers,
Stephen
Thanks Stephen
But when I create the new group with permissions to the Security section enabled. When the members of this group log in and are in the Security area the 'Add members' button is missing. Everything else looks ok.
Can you let me know which version of SilverStripe you are running and also perhaps the steps to replicate the issue you are having - I'll see if I can replicate this at my end on a fresh copy of the CMS. Something else to check is that perhaps there is some custom code causing the issue?
I believe the version is 3.1.
The issue is.
When you log into the CMS and go to the security area.
If you have administrator permissions you will see the Add members button.
I have created a group called 'Add Member Group'.
I have enabled Access to 'Security' section and disabled all other permissions.
When you log into the CMS as a member of the 'Add Member Group'. In the Security area the add members button is missing.
see attached file.
Cheers Stuart
Managed to replicate your problem, looks like this is a known limitation and there is a github issue around this at https://github.com/silverstripe/silverstripe-framework/issues/1646
You may have to look at submitting a pull request to potentially fix this in core, or perhaps get some traction on having it added as a feature by adding a feature request as http://silverstripe.uservoice.com
Thanks
I will add it to the uservoice