Update AdminUserController, fix modlog bug

pull/2033/head
Daniel Supernault 5 years ago
parent c5e8e7907a
commit e07bd934ac
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -77,10 +77,6 @@ trait AdminUserController
}
if($changed == true) {
$profile->save();
$user->save();
}
ModLogService::boot()
->objectUid($user->id)
->objectId($user->id)
@ -92,6 +88,10 @@ trait AdminUserController
])
->accessLevel('admin')
->save();
$profile->save();
$user->save();
}
return redirect('/i/admin/users/show/' . $user->id);
}

Loading…
Cancel
Save