Skip to content

Commit

Permalink
fix: move page with wrong object key (#1757)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaliTW committed Apr 22, 2020
1 parent 4308152 commit ac11cd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/models/pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit ac11cd2

Please sign in to comment.