Home › Forums › Legacy Support › Support queries › Setup issues › New customized user roles
- This topic has 38 replies, 3 voices, and was last updated 2 years, 8 months ago by Veronica.
-
AuthorPosts
-
June 28, 2021 at 1:19 pm #363110Anshuman SahuKeymaster1 . Well in wplms front end co author can edit the course right now . We have added the provision for this , can share code after update to remove the edit course option from co author in front end . 2 . the capability you need to uncheck for this user role would be "manage_users" and "manage_options" .June 30, 2021 at 3:55 pm #363445hothaibinhParticipantI want to check to see if I communicated my demand correctly 1. Hi, I want the co-author to edit the course, however, only 1 main author is displayed on the course profile, other co-authors can edit the course (including add or remove users from the courses) but their profile photos are not shown. So your code will help me this right ? 2. I mean I want the new user roles can only manage users in wp-admin (to add and edit users in batch) however, cannot access any other features like LMS, VibeBP, Pages. So should I check or uncheck "manage_users" and "manage_options" ? What does "manage_options" can do ?July 1, 2021 at 1:03 pm #363544Anshuman SahuKeymaster1 . yes we can hide second instructor . 2 . yes this is possible with user role editor , you can see the groups capabilities in it . you can uncheck all except the group capabilities for the user role .July 2, 2021 at 4:48 pm #363737hothaibinhParticipant1. please teach me how 2. Thank you I will tryJuly 5, 2021 at 1:20 pm #363995Anshuman SahuKeymaster1 . please try adding this given code in your wplms-customizer.php file in wplms customizer plugin :
add_action('init',function(){ if(class_exists('WPLMS_Coauthors_Plus')){ $init = WPLMS_Coauthors_Plus::init(); remove_filter('wplms_display_course_instructor',array($init,'wplms_coauthor_plus_instructor'),10,2); remove_filter('wplms_course_instructors',array($init,'wplms_coauthor_plus_course_instructor'),10,2); } });
July 15, 2021 at 9:45 am #365191hothaibinhParticipant"2 . the capability you need to uncheck for this user role would be “manage_users” and “manage_options” ." please tell me what does "manage options" do ?July 15, 2021 at 9:59 am #365194hothaibinhParticipantSorry, it is still confusing to me. I would like to clarify my questions so now I need 1. User manager: who can - create and edit info of user -> capabilities: create user, edit user, list user, read, upload files, list roles - add user to any course -> what capabilities do he need ? - add user to any batch -> what capabilities do he need ? - create batch -> what capabilities do he need ? 2. Course manager: who can - edit any course WITHOUT deleting course -> what capabilities do he need ? Thank youJuly 16, 2021 at 2:13 pm #365404Anshuman SahuKeymaster1 . -- manage_users -- edit_posts -- well for this he should be the group admin of that batch otherwise he will need manage_opitons capability which you do not want to give as the user will see all the settings in wp backend then . -- create batch : no capability needed users can create groups from front end . 2 . 'manage_options' but with this again he can change site settings and can delete the course as well from backend . there is no other option other than adding the user as co author of that course and we can hide him as co author using this tip : https://wplms.io/support/forums/topic/new-customized-user-roles/page/2/#post-363995July 18, 2021 at 8:51 am #365575hothaibinhParticipantHi, About 1. Course Manager I found there are 2 'author' and 'authors' fields, what's the difference ? The only course that appears in front end are those have the user added in 'authors' https://photos.app.goo.gl/sJJpGAFBLNe75JzU8 , this is the front end https://photos.app.goo.gl/ebbvr1kw3GYheYQP6 and course that have the user added to 'author' doesn't show up in front end https://photos.app.goo.gl/vPnmjEDEhW1TZjfE6 About 2. User Manager: This is the capability for the role https://photos.app.goo.gl/bm5XDppV4pvAfB9i7 Then I add the user as co-author of a course When I see it in front end, the course shows up but there's no add student button https://photos.app.goo.gl/nVU9vKxMo4p3XoHq5 Is there anything missing ?July 21, 2021 at 1:16 pm #365972Anshuman SahuKeymasterwhat you are asking for to manage students capability instructor is not available right now unless you add the user as coauthor of that course . Well we can show that user the add user button can we please have the user role or some unique capability of that user ?July 22, 2021 at 11:49 am #366084hothaibinhParticipantThis reply has been marked as private.July 28, 2021 at 1:45 pm #366603Anshuman SahuKeymasterWell I checked from one of the users and found our that they were able to edit the course . Do you wish they should not see the edit course tab in course manage ?August 17, 2021 at 4:27 am #368341hothaibinhParticipantHi, it's quite confusing, I still don't know how it works For example the Internal Course Manager account, it can edits some course why can't edit on others. For example the course "Đào tạo nhập môn" can't be edited using this account although Internal Course Manager is already in the list of author. What else should I do ? What conditions for an account to be able to edit a course ?August 17, 2021 at 2:10 pm #368423Anshuman SahuKeymasterPlease check if your Course Manager user is added as author to this course :Đào tạo nhập môn: ?August 18, 2021 at 5:34 pm #368568hothaibinhParticipantYes, here https://photos.app.goo.gl/26ssi2VJZVL6dBHf8 -
AuthorPosts
- The topic ‘New customized user roles’ is closed to new replies.