Internal: Minor: Fix admin activation on user edit

pull/5307/head
christianbeeznst 8 months ago
parent 208e8003ed
commit cca229c995
  1. 7
      public/main/admin/user_edit.php

@ -435,10 +435,9 @@ if ($form->validate()) {
$expiration_date = $user['expiration_date'];
}
if (isset($user['active'])) {
$active = $user_data['platform_admin'] ? USER_ACTIVE : intval($user['active']);
} else {
$active = USER_SOFT_DELETED;
$active = isset($user['active']) ? (int) $user['active'] : USER_SOFT_DELETED;
if ($user_data['platform_admin']) {
$active = USER_ACTIVE;
}
//If the user is set to admin the status will be overwrite by COURSEMANAGER = 1

Loading…
Cancel
Save