|
|
|
@ -96,6 +96,9 @@ final class AdminUsersService |
|
|
|
throw new Exception(__('service.admin_user.name_exists')); |
|
|
|
} |
|
|
|
$model = AdminUsers::findOrFail($id); |
|
|
|
if ($model['username'] == 'Admin' || $id == 1) { |
|
|
|
throw new Exception(__('service.admin_user.not_edit')); |
|
|
|
} |
|
|
|
$oldValue = $model->toArray(); |
|
|
|
$update = [ |
|
|
|
'username' => $data['username'], |
|
|
|
|