mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Don't allow users without a company to change the company of items if full company support is enabled. (#2321)
This commit is contained in:
parent
0bf5c6978e
commit
9e4ac018ea
|
@ -110,7 +110,7 @@ final class Company extends Model
|
|||
public static function isCurrentUserAuthorized()
|
||||
{
|
||||
|
||||
return ((!static::isFullMultipleCompanySupportEnabled()) || (Auth::user()->company_id == null) || (Auth::user()->isSuperUser()));
|
||||
return ((!static::isFullMultipleCompanySupportEnabled()) || (Auth::user()->isSuperUser()));
|
||||
}
|
||||
|
||||
public static function canManageUsersCompanies()
|
||||
|
|
Loading…
Reference in a new issue