Skip to content
Snippets Groups Projects
Commit 63924e6c authored by Amaan Mawji's avatar Amaan Mawji Committed by Nicolas Giard
Browse files

Strip out edit and create from start of path

Fixes the issue that requires you to add extra permission sets for `/create/...` and `/edit/...`

Fixes #147
parent df3ec91f
No related branches found
No related tags found
No related merge requests found
...@@ -56,7 +56,7 @@ module.exports = { ...@@ -56,7 +56,7 @@ module.exports = {
manage: false manage: false
} }
let rt = [] let rt = []
let p = _.chain(req.originalUrl).toLower().trim().value() let p = _.chain(req.originalUrl).toLower().trim().replace(/^\/(edit|create)/, '').value()
// Load user rights // Load user rights
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment