From b346556caa0d216fa23e8098824b853e2f29ff48 Mon Sep 17 00:00:00 2001 From: Tim Bishop Date: Mon, 22 Jan 2018 21:12:02 +0000 Subject: [PATCH] Allow manager_id to be fillable. (#4882) The API UsersController accepts manager_id, but calls the following: $user->fill($request->all()); This results in manager_id being ignored. I can't see any problem with allowing a user's manager to be modified using the API, so this change allows it. --- app/Models/User.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Models/User.php b/app/Models/User.php index bb85516e16..8fbbac9cfa 100755 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -45,6 +45,7 @@ class User extends SnipeModel implements AuthenticatableContract, CanResetPasswo 'country', 'zip', 'activated', + 'manager_id', ]; protected $casts = [