Show Filemanager to certain user groups only

You can show or hide the filemanager in the front-end based on user group (role). To do this you can use fm_access shortcode around your filemanager shortcode. Here is an example:

[fm_access group='administrator']
[filemanager foldername="*"]
[/fm_access]

This will only show the filemanager to administrator user role.
You can also make the filemanager show up to logged-in users only by using [fm_access group='logged-in']…..[/fm_access] shortcode around your target shortcode. Here is an example:

[fm_access group='logged-in']
[filemanager foldername="*"]
[/fm_access]

This will only show up for logged-in users.

The possible group choice are:
1. administrator
2. subscriber
3. editor
4. author
4. logged-in
5. not-logged-in

You can also use custom generated user roles.
fm_access shortcodes will work for any content, not just filemanager shortcodes.

 

An example to show different shortcodes to multiple user groups, and show a text message to logged-out users:

[fm_access group='administrator']
[filemanager foldername="*"]
[/fm_access]

[fm_access group='subscriber']
[filemanager foldername="wp-content/uploads/pics" groups="subscriber" access="ru"]
[/fm_access]

[fm_access group='teacher']
[filemanager foldername="wp-content/uploads/books" groups="teacher" access="ru"]
[/fm_access]

[fm_access group='not-logged-in']
Login to the site to see the folders assigned to you
[/fm_access]