mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
fix admin setting authorization + cleanup trans
This commit is contained in:
@@ -36,11 +36,6 @@ class AgentAllowResource extends Resource
|
||||
return self::getNavigationLabel();
|
||||
}
|
||||
|
||||
// public static function getModelLabel(): string
|
||||
// {
|
||||
//
|
||||
// }
|
||||
|
||||
|
||||
public static function form(Form $form): Form
|
||||
{
|
||||
|
||||
@@ -36,4 +36,5 @@ class ListAgentAllows extends PageList
|
||||
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -30,6 +30,8 @@ class EditSetting extends Page implements Forms\Contracts\HasForms
|
||||
|
||||
public function mount()
|
||||
{
|
||||
static::authorizeResourceAccess();
|
||||
|
||||
$settings = Setting::get();
|
||||
$this->form->fill($settings);
|
||||
|
||||
@@ -67,6 +69,8 @@ class EditSetting extends Page implements Forms\Contracts\HasForms
|
||||
|
||||
public function submit()
|
||||
{
|
||||
static::authorizeResourceAccess();
|
||||
|
||||
$formData = $this->form->getState();
|
||||
$notAutoloadNames = ['donation_custom'];
|
||||
$data = [];
|
||||
|
||||
Reference in New Issue
Block a user