mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 21:54:14 -08:00
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.
This commit is contained in:
parent
93ec7068df
commit
b346556caa
|
@ -45,6 +45,7 @@ class User extends SnipeModel implements AuthenticatableContract, CanResetPasswo
|
||||||
'country',
|
'country',
|
||||||
'zip',
|
'zip',
|
||||||
'activated',
|
'activated',
|
||||||
|
'manager_id',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $casts = [
|
protected $casts = [
|
||||||
|
|
Loading…
Reference in a new issue