Block non-owners from multilingualism page access in enterprise mode
authorMatthias Schmidt <gravatronics@live.com>
Wed, 31 Jul 2019 15:44:40 +0000 (17:44 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 31 Jul 2019 15:44:40 +0000 (17:44 +0200)
Close #3004

wcfsetup/install/files/lib/acp/form/LanguageMultilingualismForm.class.php
wcfsetup/install/files/lib/system/menu/acp/ACPMenu.class.php

index dfcf6da075dc52f392aef1b64d0a14f537ac5b4f..dac7a926c0c755159e1f5fa36617809a141c2f58 100644 (file)
@@ -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
         */
index a6da958b99d26375eeaae75acb95b52ba25be88c..cf807a369a042584175d56860800ce5530a47410 100644 (file)
@@ -21,6 +21,7 @@ class ACPMenu extends TreeMenu {
         * @since       5.2
         */
        protected $enterpriseBlacklist = [
+               'wcf.acp.menu.link.language.multilingualism',
                'wcf.acp.menu.link.systemCheck'
        ];