Home › Forums › Legacy Support › Support queries › Setup issues › Create an account that can ONLY manage user
- This topic has 15 replies, 2 voices, and was last updated 2 years, 9 months ago by Veronica.
-
AuthorPosts
-
October 9, 2021 at 4:05 am #372389hothaibinhParticipantHi this my current account, it 1. Can edit anything in wp-admin 2. Can't add user to course in front end What I want: 1. Can ONLY access to Users and WP sheet editor in wp-admin but can't do anything else, I don't want that account to mess up with course settings 2. Can add students to any course and any batch Please let me know how to do thatOctober 9, 2021 at 4:05 am #372390hothaibinhParticipantThis reply has been marked as private.October 11, 2021 at 12:32 pm #372521VeronicaModeratorhi for that you can use user role management plugin or any third party pluginOctober 17, 2021 at 3:34 pm #372954hothaibinhParticipantSo which permissions should be added or removed to make that happen in my case ? I have the pluginOctober 18, 2021 at 1:09 pm #372989VeronicaModeratorhi for all that you need to check the user role editor pluginOctober 23, 2021 at 4:59 am #373391hothaibinhParticipantYes I know, Please help me check the Capabilities plugins. There are lots of capabilities that I don't understand how they actually work. The way WPLMS works are not similar with a standard wordpress site. I have assign some capabilities that I believe to make my custom role User Manager work. But I don't know what make these work 1. Can ONLY access to Users and WP sheet editor in wp-admin but can’t do anything else, I don’t want that account to mess up with course settings 2. Can add students to any course and any batch If I know that I would not ask. I don't want to mess with that as we have learners using our site. These are the options I selected https://vimeo.com/638093180/3742e0de0fOctober 25, 2021 at 1:30 pm #373508VeronicaModeratorhi for2: both are managed from front-end for the batch user should be the creator of the batch for the course user should be the author/co-author of the course only then the above functionality is possible for1: user can check manage_user or you can ask the same to the plugin's supportNovember 10, 2021 at 7:47 am #374396hothaibinhParticipantThis reply has been marked as private.November 11, 2021 at 12:15 pm #374468VeronicaModeratorcan you please let us know all the details like which user on which I can test this to add and which batch and course? please share exact URLsNovember 26, 2021 at 2:43 pm #375271hothaibinhParticipantThis reply has been marked as private.November 27, 2021 at 12:50 pm #375314VeronicaModeratorhi this one: 1. Can ONLY access to Users and WP sheet editor in wp-admin but can’t do anything else, I don’t want that account to mess up with course settings is not in our control so we can't make any changes to that and for this: 2. Can add students to any course and any batch we need to know on your site is there any normal instructor is available or only admin and the instructor for which you want to change the capabilities? because we need to change the source code accordinglyDecember 23, 2021 at 11:35 am #376640hothaibinhParticipantHi 2. I don't have any other instructor, I need an admin account who can add students to any course or any batchDecember 24, 2021 at 1:23 pm #376706VeronicaModeratorhi first, create a new user role(don't edit the existing one) create a new user role and and assign the capability and add these code in wplms-customizer.php
NOTE: you need to change this mycustomcapability in the code to you custom created capabilityadd_filter('vibebp_groups_api_can_add_members',function($x,$y,$user_id){ if(user_can($user_id,'mycustomcapability')){ return true; } return $x; },10,3); add_filter('bp_course_api_get_instructor_tabs',function($x,$y,$user_id){ if(user_can($user_id,'mycustomcapability')){ return array( array( 'key'=>'admin', 'type'=> 'tab', 'label'=>_x('Admin','api','wplms'), )); } return $x; },10,3);
March 3, 2022 at 12:22 pm #381099hothaibinhParticipantHi, I copied your code to wplms-customizer.php I created a new role But I don't see the new capability in the list https://vimeo.com/684205039/12a5fe7443 Where may I find it ?March 4, 2022 at 6:16 am #381172VeronicaModeratorchecking -
AuthorPosts
- The topic ‘Create an account that can ONLY manage user’ is closed to new replies.