fix: missing write:pages perm for edit existing pages (#1228)
This commit is contained in:
@@ -66,7 +66,7 @@ router.get(['/e', '/e/*'], async (req, res, next) => {
|
||||
}
|
||||
|
||||
if (page) {
|
||||
if (!WIKI.auth.checkAccess(req.user, ['manage:pages'], pageArgs)) {
|
||||
if (!WIKI.auth.checkAccess(req.user, ['write:pages', 'manage:pages'], pageArgs)) {
|
||||
_.set(res.locals, 'pageMeta.title', 'Unauthorized')
|
||||
return res.render('unauthorized', { action: 'edit' })
|
||||
}
|
||||
|
Reference in New Issue
Block a user