mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 19:51:09 -04:00
solve unit tests
This commit is contained in:
@ -419,7 +419,7 @@ class User extends Authenticatable implements HasMedia
|
||||
if (Schema::hasColumn('companies', 'owner_id')) {
|
||||
$company = Company::find(request()->header('company'));
|
||||
|
||||
if ($company && $this->id === $company->owner_id) {
|
||||
if ($company && $this->id == $company->owner_id) {
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user