mirror of
https://github.com/crater-invoice/crater.git
synced 2026-02-04 01:31:44 -05: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