How to restrict file set to a user group
PermalinkI have a file set called "Banners" that contains banners displayed randomly at the top of the pages of my site.
I have many administrators (from the administrators group) that are allowed to add/remove images to this file set.
The "Banners" file set is checked "public" since I want all admins to see it. If I leave if "private" only the file set creator sees it.
Now, I have other site editors that sees this file set (through the Sets menu) and can add images to it, thus affecting the live web site with undesired images displaying at the top of pages.
Is there a way to restrict a file sets to only a certain group?
I tried making the file set "private" but it won't show to other admins, and I tried to change the file set permissions to "admin group only" but other non admin users are still able to add files to this file set through their File Managers - event though they cannot see the files the admins put in it.
Thanks!
Basically, though if you enable advanced permissions (you can get there by going to /index.php/dashboard/system/permissions/advanced/ in your site) then you can set custom permission on your file sets.
So once you have advanced permissions enabled go to /index.php/dashboard/files/sets/ then click on the file set ("banners"). Now you'll see a checkbox that says "Enable custom permissions for this file set." Check that box and hit save and once it refreshes you'll be able to set custom permission on the set, including allowing only certain users/groups.
Hopefully that helps you out. Like I said, I ran into a few issues but with trial and error and some persistence I was able to get it working properly.
File in question is the root/concrete/elements/files/add_to_sets.php
If you replace the entire ul tag starting at line 145 - 174 that looks like this:
with this
Maybe?