Unverified Commit ac11cd2c authored by GaliTW's avatar GaliTW Committed by GitHub

fix: move page with wrong object key (#1757)

parent 4308152a
......@@ -400,8 +400,8 @@ module.exports = class Page extends Model {
// -> Check for source page access
if (!WIKI.auth.checkAccess(opts.user, ['manage:pages'], {
locale: page.sourceLocale,
path: page.sourcePath
locale: page.localeCode,
path: page.path
})) {
throw new WIKI.Error.PageMoveForbidden()
}
......
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