Change WordPress user roles and capabilities Forums Bug Reports "Other Roles" w/ "Administrator" Not Working Reply To: "Other Roles" w/ "Administrator" Not Working

#2853
Vladimir
Keymaster

I developed a fix for this. It works conditionally now and takes an account the result from custom filter:


add_filter('ure_not_block_other_roles_for_local_admin','ure_block_other_roles_for_local_admin');

function ure_block_other_roles_for_local_admin($flag) {

  return false;
}

You may add this code to the active theme functions.php file or setup it as a “must use” plugin.

In order this filter start to work you need to replace 3 files at current 2.28.2 version folder:
includes/classes/ure-lib.php
pro/includes/classes/other-roles-access.php
pro/includes/classes/ure-lib-pro.php

I will send the zip with updated files above to your email.
Of course this update will be included to the next version. Development version beta5 is on the road to the public testing stage currently (includes some unfinished changes) so I do not make it available for a while.