diff options
Diffstat (limited to 'MLEB/Translate/specials/SpecialTranslationStash.php')
-rw-r--r-- | MLEB/Translate/specials/SpecialTranslationStash.php | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/MLEB/Translate/specials/SpecialTranslationStash.php b/MLEB/Translate/specials/SpecialTranslationStash.php index 78ff4b38..50a309ed 100644 --- a/MLEB/Translate/specials/SpecialTranslationStash.php +++ b/MLEB/Translate/specials/SpecialTranslationStash.php @@ -25,7 +25,7 @@ class SpecialTranslationStash extends SpecialPage { } protected function getGroupName() { - return 'wiki'; + return 'translation'; } public function execute( $params ) { @@ -63,24 +63,8 @@ class SpecialTranslationStash extends SpecialPage { * @return bool */ protected function hasPermissionToUse() { - global $wgTranslateTestUsers; - - $request = $this->getRequest(); $user = $this->getUser(); - if ( in_array( $user->getName(), $wgTranslateTestUsers, true ) ) { - if ( $request->getVal( 'integrationtesting' ) === 'activatestash' ) { - $user->addGroup( 'translate-sandboxed' ); - - return true; - } elseif ( $request->getVal( 'integrationtesting' ) === 'deactivatestash' ) { - $user->removeGroup( 'translate-sandboxed' ); - $this->stash->deleteTranslations( $user ); - - return false; - } - } - if ( !TranslateSandbox::isSandboxed( $user ) ) { return false; } |