Merge pull request #5307 from christianbeeznest/GH-5295

Internal: Minor: Fix admin activation on user edit
pull/5309/head
christianbeeznest 1 year ago committed by GitHub
commit b0b4c33838
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  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