Merge remote-tracking branch 'origin/develop'

This commit is contained in:
snipe 2020-10-23 11:56:10 -07:00
commit 8aae2b46cd
3 changed files with 2 additions and 5 deletions

View file

@ -34,7 +34,7 @@ class SaveUserRequest extends FormRequest
{
$rules = [
'manager_id' => "nullable|exists:users,id|different:users.id"
'manager_id' => "nullable|exists:users,id"
];
switch($this->method())

View file

@ -120,9 +120,6 @@ class Setting extends Model
try {
$usercount = User::withTrashed()->count();
$settingsCount = self::count();
\Log::debug('User table and settings table exist and have records.');
\Log::debug('Settings: '.$settingsCount );
\Log::debug('Users: '.$usercount );
return $usercount > 0 && $settingsCount > 0;
} catch (\Throwable $th) {
\Log::debug('User table and settings table DO NOT exist or DO NOT have records');

View file

@ -74,7 +74,7 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
'password' => 'required|min:8',
'locale' => 'max:10|nullable',
'website' => 'url|nullable',
'manager_id' => 'nullable|exists:users,id|different:users.id',
'manager_id' => 'nullable|exists:users,id',
'location_id' => 'exists:locations,id|nullable',
];