mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02: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,10 +77,6 @@ trait AdminUserController
|
||||||
}
|
}
|
||||||
|
|
||||||
if($changed == true) {
|
if($changed == true) {
|
||||||
$profile->save();
|
|
||||||
$user->save();
|
|
||||||
}
|
|
||||||
|
|
||||||
ModLogService::boot()
|
ModLogService::boot()
|
||||||
->objectUid($user->id)
|
->objectUid($user->id)
|
||||||
->objectId($user->id)
|
->objectId($user->id)
|
||||||
|
@ -92,6 +88,10 @@ trait AdminUserController
|
||||||
])
|
])
|
||||||
->accessLevel('admin')
|
->accessLevel('admin')
|
||||||
->save();
|
->save();
|
||||||
|
$profile->save();
|
||||||
|
$user->save();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return redirect('/i/admin/users/show/' . $user->id);
|
return redirect('/i/admin/users/show/' . $user->id);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue