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:
@ -21,7 +21,7 @@ class CompanyPolicy
|
||||
|
||||
public function delete(User $user, Company $company)
|
||||
{
|
||||
if ($user->id === $company->owner_id) {
|
||||
if ($user->id == $company->owner_id) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -30,7 +30,7 @@ class CompanyPolicy
|
||||
|
||||
public function transferOwnership(User $user, Company $company)
|
||||
{
|
||||
if ($user->id === $company->owner_id) {
|
||||
if ($user->id == $company->owner_id) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user