mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
org constant fi
This commit is contained in:
parent
3ec8fb4fad
commit
befa600644
2 changed files with 6 additions and 2 deletions
|
|
@ -30,7 +30,11 @@ export function getUserPermissionsQuery(
|
|||
}, {});
|
||||
query
|
||||
.leftJoin('groupPermissions.groupGranularPermissions', 'granularPermissions')
|
||||
.andWhere(orConditions, parameters)
|
||||
.andWhere(
|
||||
new Brackets((qb) => {
|
||||
qb.where(orConditions, parameters).orWhere('granularPermissions.id IS NULL');
|
||||
})
|
||||
)
|
||||
.addSelect(['granularPermissions.isAll', 'granularPermissions.type']);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ export class AbilityService {
|
|||
appCreate: acc.appCreate || group.appCreate,
|
||||
appDelete: acc.appDelete || group.appDelete,
|
||||
folderCRUD: acc.folderCRUD || group.folderCRUD,
|
||||
orgConstantCRUD: acc.folderCRUD || group.folderCRUD,
|
||||
orgConstantCRUD: acc.orgConstantCRUD || group.orgConstantCRUD,
|
||||
orgVariableCRUD: acc.orgVariableCRUD,
|
||||
};
|
||||
}, DEFAULT_USER_PERMISSIONS);
|
||||
|
|
|
|||
Loading…
Reference in a new issue