We are trying to use the Buddydrive functionality to store content but noticed that there is no way to restrict uploading of files only by the Admin. Currently students are also able to upload documents that other students can see. That is not desirable. Is there a way where only Admins can upload the documents?
Appreciate your help.
Regards
You can restrict the space alloted to users from wp-admin -> settings -> buddydrive :
http://prntscr.com/if2r1m
change it to 0 .
Tried putting zero but it won't let you save. Please try on your end and confirm.
Hi,
Please paste the following code in wp-admin>plugin>editor>WPLMS customizer plugin
add_filter('buddydrive_current_user_can',function($can, $capability, $user_id, $args){
if(!user_can($user_id,'edit_posts')){
$can = false;
}
return $can;
},10,4);
Tried the same but the add new file is still showing up for users with Student role. Any other suggestion?
Hi,
There is a little change in code.
Replace 10 with 90 in the last line of code.
Refer :
http://prntscr.com/ilatyg
Thanks for your help. This is now resolved. You can close this thread.