#1914
Vladimir
Keymaster

Quick fix for version 4.21.1. Open wp-content/user-role-editor-pro/includes/pro/classes/posts-edit-access.php, find save_user_restrictions() function, line #313 and replace this code:

if (isset($_POST['ure_posts_restriction_type'])) {
    $posts_restriction_type = $_POST['ure_posts_restriction_type'];
    if ($posts_restriction_type!=1 && $posts_restriction_type!=2) {  // sanitize user input
        $posts_restriction_type = 1;
    }
    update_user_meta($user_id, $this->umk_posts_restriction_type, $posts_restriction_type);
}

with this version:


if (isset($_POST['ure_posts_restriction_type'])) {
    $posts_restriction_type = $_POST['ure_posts_restriction_type'];
    if ($posts_restriction_type!=1 && $posts_restriction_type!=2) {  // sanitize user input
        $posts_restriction_type = 1;
    }
    update_user_meta($user_id, $this->umk_posts_restriction_type, $posts_restriction_type);
} else {    // 'profile_update' action was fired not from the 'user profile' page, so there is no data to update
    return;
}