refactor(admin): remove pos penempatan from super admin user forms and table

This commit is contained in:
Ray1111-aa
2026-10-22 09:06:40 +07:00
parent f73c22ee9e
commit 8e23cffed8
2 changed files with 19 additions and 51 deletions
@@ -184,7 +184,7 @@ class UserController extends Controller
$user->username = $validated['username'];
$user->email = $validated['email'];
$user->role = $validated['role'];
$user->gate_id = $validated['gate_id'] ?? null;
$user->gate_id = array_key_exists('gate_id', $validated) ? $validated['gate_id'] : $user->gate_id;
$passwordUpdated = false;
if (!empty($validated['password'])) {