From 6acce098c9f2f181ecbc7201a4c0135e27d76e2f Mon Sep 17 00:00:00 2001 From: snipe Date: Sun, 16 Apr 2023 15:24:56 -0700 Subject: [PATCH] Added autoassign_licenses on user model Signed-off-by: snipe --- app/Models/User.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Models/User.php b/app/Models/User.php index c716da074b..69eac6338a 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -65,6 +65,7 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo 'avatar', 'gravatar', 'vip', + 'autoassign_licenses', ]; protected $casts = [ @@ -78,6 +79,7 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo 'deleted_at' => 'datetime', 'start_date' => 'datetime:Y-m-d', 'end_date' => 'datetime:Y-m-d', + 'autoassign_licenses' => 'boolean', ]; /** @@ -97,6 +99,7 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo 'location_id' => 'exists:locations,id|nullable', 'start_date' => 'nullable|date_format:Y-m-d', 'end_date' => 'nullable|date_format:Y-m-d|after_or_equal:start_date', + 'autoassign_licenses' => 'boolean', ]; /**