Seeming working (though not very thoroughly tested) granular access control for reports, report templates and namespaces.
Should work both in local auth case and LDAP auth case.
This commit is contained in:
parent
89256d62bd
commit
34823cf0cf
17 changed files with 352 additions and 146 deletions
|
@ -71,7 +71,8 @@ async function create(context, entity) {
|
|||
|
||||
entity.params = JSON.stringify(entity.params);
|
||||
|
||||
id = await tx('reports').insert(filterObject(entity, allowedKeys));
|
||||
const ids = await tx('reports').insert(filterObject(entity, allowedKeys));
|
||||
id = ids[0];
|
||||
|
||||
await shares.rebuildPermissions(tx, { entityTypeId: 'report', entityId: id });
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue