From a8ea5352824ef9a9621fb90267c110a711c305e1 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 31 Jul 2019 17:44:40 +0200 Subject: [PATCH] Block non-owners from multilingualism page access in enterprise mode Close #3004 --- .../files/lib/acp/form/LanguageMultilingualismForm.class.php | 5 +++++ wcfsetup/install/files/lib/system/menu/acp/ACPMenu.class.php | 1 + 2 files changed, 6 insertions(+) diff --git a/wcfsetup/install/files/lib/acp/form/LanguageMultilingualismForm.class.php b/wcfsetup/install/files/lib/acp/form/LanguageMultilingualismForm.class.php index dfcf6da075..dac7a926c0 100644 --- a/wcfsetup/install/files/lib/acp/form/LanguageMultilingualismForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LanguageMultilingualismForm.class.php @@ -47,6 +47,11 @@ class LanguageMultilingualismForm extends AbstractForm { */ public $languages = []; + /** + * indicates that this page is only accessible to owners in enterprise mode + */ + const BLACKLISTED_IN_ENTERPRISE_MODE = true; + /** * @inheritDoc */ diff --git a/wcfsetup/install/files/lib/system/menu/acp/ACPMenu.class.php b/wcfsetup/install/files/lib/system/menu/acp/ACPMenu.class.php index a6da958b99..cf807a369a 100644 --- a/wcfsetup/install/files/lib/system/menu/acp/ACPMenu.class.php +++ b/wcfsetup/install/files/lib/system/menu/acp/ACPMenu.class.php @@ -21,6 +21,7 @@ class ACPMenu extends TreeMenu { * @since 5.2 */ protected $enterpriseBlacklist = [ + 'wcf.acp.menu.link.language.multilingualism', 'wcf.acp.menu.link.systemCheck' ]; -- 2.20.1