Fluid layout
Reworked routing and breadcrumb mechanism. It allows resolved parameters in paths, which allows including names of entities in the breadcrumb. Secondary navigation which is aware of permissions.
This commit is contained in:
parent
86fce404a9
commit
602364caae
33 changed files with 808 additions and 907 deletions
|
@ -9,7 +9,7 @@ const contextHelpers = require('../lib/context-helpers');
|
|||
|
||||
const router = require('../lib/router-async').create();
|
||||
|
||||
router.getAsync('/download/:id', passport.loggedIn, async (req, res) => {
|
||||
router.getAsync('/:id/download', passport.loggedIn, async (req, res) => {
|
||||
await shares.enforceEntityPermission(req.context, 'report', req.params.id, 'viewContent');
|
||||
|
||||
const report = await reports.getByIdWithTemplate(contextHelpers.getAdminContext(), req.params.id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue