mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
fix admin user delete redirect
This commit is contained in:
@@ -323,6 +323,7 @@ class UserProfile extends ViewRecord
|
|||||||
{
|
{
|
||||||
return Actions\DeleteAction::make()->using(function () {
|
return Actions\DeleteAction::make()->using(function () {
|
||||||
$this->getRep()->destroy($this->record->id);
|
$this->getRep()->destroy($this->record->id);
|
||||||
|
return redirect(self::$resource::getUrl('index'));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user