Support » Plugin: User Role Editor » Unable to De-Select Capabilities checkbox

  • While logged in as Administrator, I encountered an issue wherein I could Check a checkbox in the capabilities list but could not Uncheck any checked checkbox.

    After doing the usual…deactivating all other plugins and using the twentyseventeed theme, the problem persisted.

    I finally had to dissect the code and found this javascript function in the “ure.js” file, which is called via onclick on each checkbox:

    // turn on checkbox back if clicked to turn off
    function ure_turn_it_back(control) {
        control.checked = true;
    // end of ure_turn_it_back()

    This is the code that disallows Un-checking a checkbox. What is the purpose of that? As far as I can tell, it isn’t limited to certain Roles. I figure it is either a bug or there is something I’m missing.

    I’m commenting it out for now, in order to make URE usable. Please advise.

Viewing 1 replies (of 1 total)
  • I get the same here. Can’t understand why an admin wooldn’t be able to uncheck a capability.

    The code is found in “includes/classes/views.php”:

    public function show_capabilities($for_role = true, $edit_mode=true) {

    $onclick_for_admin = ”;
    $multisite = $this->lib->get(‘multisite’);
    $current_role = $this->lib->get(‘current_role’);
    if (!($multisite && $this->lib->is_super_admin())) { // do not limit SuperAdmin for multi-site
    if (‘administrator’==$current_role) {
    $onclick_for_admin = ‘onclick=”ure_turn_it_back(this)”‘;

Viewing 1 replies (of 1 total)
  • The topic ‘Unable to De-Select Capabilities checkbox’ is closed to new replies.