mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 19:37:23 +08:00
agnet allow deny clear cahce after delete + VIP above never demotion
This commit is contained in:
@@ -13,7 +13,11 @@ class EditAgentDeny extends EditRecord
|
||||
protected function getActions(): array
|
||||
{
|
||||
return [
|
||||
Actions\DeleteAction::make(),
|
||||
Actions\DeleteAction::make()->using(function ($record) {
|
||||
$record->delete();
|
||||
clear_agent_allow_deny_cache();
|
||||
return redirect(AgentDenyResource::getUrl());
|
||||
})
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user