This commit is contained in:
Hillel Coren 2019-11-18 00:14:56 +02:00
parent 0850a4e5f3
commit 2645e2918a
1 changed files with 10 additions and 0 deletions

View File

@ -441,6 +441,16 @@ abstract class UserCompanyEntity
return false;
}
// TODO remove this once task/expenses are supported
if ([
EntityType.vendor,
EntityType.expense,
EntityType.task,
EntityType.project,
].contains(entityType)) {
return false;
}
if (isAdmin ?? false) {
return true;
}