fix: move page with wrong object key (#1757)
This commit is contained in:
parent
4308152a08
commit
ac11cd2cdd
@ -400,8 +400,8 @@ module.exports = class Page extends Model {
|
|||||||
|
|
||||||
// -> Check for source page access
|
// -> Check for source page access
|
||||||
if (!WIKI.auth.checkAccess(opts.user, ['manage:pages'], {
|
if (!WIKI.auth.checkAccess(opts.user, ['manage:pages'], {
|
||||||
locale: page.sourceLocale,
|
locale: page.localeCode,
|
||||||
path: page.sourcePath
|
path: page.path
|
||||||
})) {
|
})) {
|
||||||
throw new WIKI.Error.PageMoveForbidden()
|
throw new WIKI.Error.PageMoveForbidden()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user