WiP on permissions
Doesn't run. This commit is just to backup the changes.
This commit is contained in:
parent
5df444f641
commit
89c9615592
37 changed files with 913 additions and 366 deletions
8
app.js
8
app.js
|
@ -19,6 +19,7 @@ const handlebarsHelpers = require('./lib/handlebars-helpers');
|
|||
const compression = require('compression');
|
||||
const passport = require('./lib/passport');
|
||||
const tools = require('./lib/tools');
|
||||
const contextHelpers = require('./lib/context-helpers');
|
||||
|
||||
const routes = require('./routes/index');
|
||||
const lists = require('./routes/lists');
|
||||
|
@ -220,11 +221,8 @@ app.use((req, res, next) => {
|
|||
});
|
||||
|
||||
app.use((req, res, next) => {
|
||||
req.context = {
|
||||
user: req.user
|
||||
};
|
||||
|
||||
next();
|
||||
req.context = contextHelpers.getRequestContext(req);
|
||||
next();
|
||||
});
|
||||
|
||||
app.use('/', routes);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue