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
pull/370/head v1.0.66
Amaan Mawji 8 years ago committed by Nicolas Giard
parent df3ec91fed
commit 63924e6c8e

@ -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

Loading…
Cancel
Save