[solved] Limit folder access backend user

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

[solved] Limit folder access backend user

Post by velden »

I was wondering whether CMSMS provides a way to limit folder access to a backend-user-specific folder.

Goal is to give a certain backend user editor access to one (or more) specific pages. He should be able to upload images to be used on those pages. However, it would be nice if that user could not change/delete images uploaded by others.

I thought I once read about an option for user specific upload folders but can't find it anymore (if it exists at all).

CMSMS version currently used: 1.10.3 "Hyacinthe"

Thanks in advance.
Last edited by velden on Mon Sep 10, 2012 11:17 am, edited 1 time in total.
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Limit folder access backend user

Post by Jos »

You can accomplish this with the Gallery module.
Check: http://wiki.cmsmadesimple.org/index.php ... ermissions
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Limit folder access backend user

Post by velden »

Thanks. This might be a good way as Gallery is already installed on this site.
jdavidh
New Member
New Member
Posts: 3
Joined: Sat May 02, 2009 3:18 am

Re: [solved] Limit folder access backend user

Post by jdavidh »

I needed the same feature and after some searching and reading found that TinyMCE will accommodate this need nicely.

1. Download/Install the TinyMCE editor via the module manager.
2. Switch your user/CMS to use TinyMCE by default.
3. Inside the settings for the TinyMCE editor, you will find two settings that you will need to enable:

Under the Profiles tab, I enabled:
Show filemanagement options and
Restrict user's dir access
by clicking their respective checkbox.

Then under the Advanced tab I checked, "Ignore the 'Modify Files' permission for FilePicker." (Because I did not want these users to be able to upload files outside of the TinyMCE editor, I did not give them Modify Files access.)

In following the steps above, the users can only upload files via TinyMCE and TinyMCE is set to only allow them access to a folder via their username. A username folder was auto-created in my experience.

Hope this helps for anyone else who needs this!

David
Post Reply

Return to “CMSMS Core”