Change WordPress user roles and capabilities › Forums › Bug Reports › Trouble updating "Administrator" role › Reply To: Trouble updating "Administrator" role
26/05/2019 at 14:46
#5730
berd0029
Participant
I tried the change you recommended, but it unfortunately did not solve the problem for me on the root site or at network level.
jQuery('.ure-cap-cb').each(function () { // go through all capabilities checkboxes
if (this.id.length===0) {
return;
}
jQuery(this).prop('checked', response.caps.hasOwnProperty(this.id) && response.caps[this.id]);
if ( ure_data.do_not_revoke_from_admin==1 ) {
var el = document.getElementById(this.id);
if ( 'administrator'===ure_current_role ) {
el.addEventListener( 'click', ure_turn_it_back );
} else {
el.removeEventListener( 'click', ure_turn_it_back );
}
}
});