From ac11cd2cdd4e0b69d25a1d7fcf1f0d7fd8605a24 Mon Sep 17 00:00:00 2001 From: GaliTW Date: Wed, 22 Apr 2020 23:08:46 +0800 Subject: [PATCH] fix: move page with wrong object key (#1757) --- server/models/pages.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/models/pages.js b/server/models/pages.js index 4f70e7b8..67e6bd57 100644 --- a/server/models/pages.js +++ b/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() }