Change WordPress user roles and capabilities › Forums › How to or FAQ › Custom User Edit Page › Reply To: Custom User Edit Page
06/06/2017 at 18:54
#3834
[email protected]
Participant
FYI: To test, I removed edit_users in this function, and replaced with the custom role-‘ga_site_administrator’ — and Grant Roles showed up. However, since it’s in the plugin code, it should be fixed there.. eventually. What could be going wrong?
public function show_grant_roles_html() {
if (!$this->lib->is_right_admin_path('users.php')) {
return;
}
if (!current_user_can('ga_site_administrator')) {
Image didn’t get included earlier.. trying again.
The bug it seems is that it’s not passing !current_user_can(‘edit_users’), even even the capabilities listed for the user show that edit_users => 1