Complete all tasks

This commit is contained in:
Thuan Bui
2025-04-21 13:06:16 +09:00
parent 8f62e93f7e
commit 80000ce664
10 changed files with 1545 additions and 1159 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ class UserController extends Controller
{
// TASK: change this line to not allow is_admin field to be updated
// Update only the fields that are validated in UpdateUserRequest
$user->update($request->all());
$user->update($request->except(['is_admin']));
return 'Success';
}