Commit 63924e6c authored by Amaan Mawji's avatar Amaan Mawji Committed by Nicolas Giard

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
......@@ -56,7 +56,7 @@ module.exports = {
manage: false
}
let rt = []
let p = _.chain(req.originalUrl).toLower().trim().value()
let p = _.chain(req.originalUrl).toLower().trim().replace(/^\/(edit|create)/, '').value()
// Load user rights
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment