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:
Tim Bishop 2018-01-22 21:12:02 +00:00 committed by snipe
parent 93ec7068df
commit b346556caa

View file

@ -45,6 +45,7 @@ class User extends SnipeModel implements AuthenticatableContract, CanResetPasswo
'country', 'country',
'zip', 'zip',
'activated', 'activated',
'manager_id',
]; ];
protected $casts = [ protected $casts = [