Refactor
This commit is contained in:
parent
0850a4e5f3
commit
2645e2918a
|
|
@ -441,6 +441,16 @@ abstract class UserCompanyEntity
|
||||||
return false;
|
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) {
|
if (isAdmin ?? false) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue