mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 08:13:16 +00:00
Update AdminUserController, fix modlog bug
This commit is contained in:
parent
c5e8e7907a
commit
e07bd934ac
1 changed files with 11 additions and 11 deletions
|
@ -77,21 +77,21 @@ trait AdminUserController
|
|||
}
|
||||
|
||||
if($changed == true) {
|
||||
ModLogService::boot()
|
||||
->objectUid($user->id)
|
||||
->objectId($user->id)
|
||||
->objectType('App\User::class')
|
||||
->user($request->user())
|
||||
->action('admin.user.edit')
|
||||
->metadata([
|
||||
'fields' => $fields
|
||||
])
|
||||
->accessLevel('admin')
|
||||
->save();
|
||||
$profile->save();
|
||||
$user->save();
|
||||
}
|
||||
|
||||
ModLogService::boot()
|
||||
->objectUid($user->id)
|
||||
->objectId($user->id)
|
||||
->objectType('App\User::class')
|
||||
->user($request->user())
|
||||
->action('admin.user.edit')
|
||||
->metadata([
|
||||
'fields' => $fields
|
||||
])
|
||||
->accessLevel('admin')
|
||||
->save();
|
||||
|
||||
return redirect('/i/admin/users/show/' . $user->id);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue