mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
fix admin setting authorization + cleanup trans
This commit is contained in:
@@ -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