Added user spaces #24
@ -23,8 +23,9 @@ export class PermissionGuard {
|
||||
const permissions = route.data['permissions'] as PermissionsEnum[];
|
||||
const checkByPerUserSetup = route.data['checkByPerUserSetup'] as boolean;
|
||||
|
||||
if (checkByPerUserSetup) {
|
||||
return await this.features.get('PerUserSetup');
|
||||
const isPerUserSetup = await this.features.get('PerUserSetup');
|
||||
if (checkByPerUserSetup && isPerUserSetup) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!permissions || permissions.length === 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user