From 7fb2addcefd5f9e49ce4fa998f5a879ba2ceaf23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Tue, 29 Oct 2024 14:50:26 +0900 Subject: [PATCH] cfmgrv4 init...4 --- app/Controllers/Admin/UserController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Controllers/Admin/UserController.php b/app/Controllers/Admin/UserController.php index 5edcd8f..ab889a3 100644 --- a/app/Controllers/Admin/UserController.php +++ b/app/Controllers/Admin/UserController.php @@ -51,7 +51,7 @@ class UserController extends AdminController private function init(string $action, array $fields = []): void { $this->action = $action; - $this->fields = count($fields) ? $fields : ['id', $this->getModel()::TITLE, 'email', 'mobile', 'role', 'updated_at', 'created_at']; + $this->fields = count($fields) ? $fields : ['id', $this->getModel()::TITLE, 'email', 'mobile', 'role', 'status', 'updated_at', 'created_at']; $this->field_rules = $this->getModel()->getFieldRules($action, $this->fields); $this->filter_fields = ['role', 'status']; $this->field_options = $this->getFormFieldOptions($this->filter_fields); @@ -71,12 +71,12 @@ class UserController extends AdminController //수정 public function modify_form(int $uid): RedirectResponse|string { - $this->init('modify', ['passwd', 'confirmpassword', $this->getModel()::TITLE, 'email', 'mobile', 'role']); + $this->init('modify', ['passwd', 'confirmpassword', $this->getModel()::TITLE, 'email', 'mobile', 'role', 'status']); return $this->modify_form_procedure($uid); } public function modify(int $uid): RedirectResponse|string { - $this->init(__FUNCTION__, ['passwd', 'confirmpassword', $this->getModel()::TITLE, 'email', 'mobile', 'role']); + $this->init(__FUNCTION__, ['passwd', 'confirmpassword', $this->getModel()::TITLE, 'email', 'mobile', 'role', 'status']); return $this->modify_procedure($uid); } public function toggle(mixed $uid, string $field): RedirectResponse