Browse Source

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

pull/1765/head
GaliTW 4 years ago
committed by GitHub
parent
commit
ac11cd2cdd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. 4
      server/models/pages.js

4
server/models/pages.js

@ -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()
}

Loading…
Cancel
Save