dev
parent
071802c0fd
commit
25caa2088e
|
|
@ -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' => '',
|
||||
|
|
|
|||
Loading…
Reference in New Issue