Plugin Support
Bruce
(@ninjateamwp)
Hi @marco27 ,
Thanks for using FileBird, please note that the user restriction function only works for specific user, not user groups or roles.
Also, it is designed to work with the regular WordPress roles, if you use a plugin or script to create users and user roles, it may not work.
Moreso, please note that the functionality is available both in Lite and PRO version.
Thank you!
Kind regards,
-Bruce-
Thread Starter
Marco
(@marco27)
Hi @ninjateamwp ,
thanks for your advices. You are writing that the user restriction function supports regular WordPress roles. In the free version of FileBird I didn’t found a solution to select a regular role.
Is is included in the PRO-Version?
Greetings
Marco
Plugin Support
Bruce
(@ninjateamwp)
Hi @marco27 ,
Thanks for writing back too! I confirm that FileBird Lite indeed also have this User specific function:
https://drive.google.com/file/d/1QvlAvHeMEgpUteM-cNinKYlXWpTovt41/view?usp=drivesdk
Mind you, this is not “User role” but “Users”.
Hope this clarifies!
Thank you.
Kind regards,
-Bruce-
Thread Starter
Marco
(@marco27)
Hi Bruce,
yes I see that and I tested it too. But I think this function is equivalent to this one:
add_filter( ‘ajax_query_attachments_args’,
‘wpb_show_current_user_attachments’ );
function wpb_show_current_user_attachments( $query ) {
$user_id = get_current_user_id();
if ( $user_id &&
!current_user_can(‘activate_plugins’) &&
!current_user_can(‘edit_others_posts’) ) {
$query[‘author’] = $user_id;
}
return $query;
}
But this does not help me. In your first post you wrote that the plugin is designed to work with regular roles. Does this means only the author role?
Plugin Support
Bruce
(@ninjateamwp)
Hi @marco27 ,
The user restriction function works for users that have access to the WP Admin backend of your site and then see media library.
You can test by creating two different WP Admin user account and then activate the function:
https://ninjateam.gitbook.io/filebird/set-folders-for-different-admin-users
Login the accounts to test.
Hope that clarifies?
Kind regards,
-Bruce-
-
This reply was modified 3 years ago by Bruce.