Jing Li 2023-12-04 21:06:44 +08:00
parent 071802c0fd
commit 25caa2088e
1 changed files with 4 additions and 0 deletions

View File

@ -166,6 +166,10 @@ class AdminUserController extends Controller
public function unban(AdminUser $adminUser)
{
if (! $adminUser->isAdministrator()) {
return $this->error('无操作权限');
}
if ($adminUser->banned_at) {
$adminUser->update([
'banned_reason' => '',