mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Return false if no excluded permissions are encountered
This commit is contained in:
parent
949ea3d523
commit
2662638974
@ -30,7 +30,7 @@ class ValidCompanyQuantity implements Rule
|
||||
return auth()->user()->company()->account->companies->count() < 10;
|
||||
}
|
||||
|
||||
return auth()->user()->company()->account->companies->count() < auth()->user()->company()->account->hosted_company_count;
|
||||
return auth()->user()->account->isPaid() && auth()->user()->company()->account->companies->count() < 10 ;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -522,6 +522,7 @@ class User extends Authenticatable implements MustVerifyEmail
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public function documents()
|
||||
|
Loading…
x
Reference in New Issue
Block a user