WiP on permissions
Table of shares per user
This commit is contained in:
parent
89c9615592
commit
89256d62bd
20 changed files with 354 additions and 171 deletions
|
@ -11,7 +11,7 @@ const router = require('../lib/router-async').create();
|
|||
router.getAsync('/download/:id', passport.loggedIn, async (req, res) => {
|
||||
await shares.enforceEntityPermission(req.context, 'report', req.params.id, 'viewContent');
|
||||
|
||||
const report = await reports.getByIdWithTemplateNoPerms(req.params.id);
|
||||
const report = await reports.getByIdWithTemplate(null, req.params.id);
|
||||
|
||||
if (report.state == reports.ReportState.FINISHED) {
|
||||
const headers = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue