Glaisher has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/293909

Change subject: Allow accessing Special:Undelete for translation pages
......................................................................

Allow accessing Special:Undelete for translation pages

This doesn't allow to do a "full" restoration if a translation page
was deleted along with its translation units but doing a full undeletion
doesn't seem like a trivial task. Since the units can also be restored
separately if needed, I think this is better than preventing
viewing and restoring deleted revisions completely.

Bug: T125339
Change-Id: Id90bafeabbac7161c7f971259d1051d8dad24f31
---
M tag/PageTranslationHooks.php
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Translate 
refs/changes/09/293909/1

diff --git a/tag/PageTranslationHooks.php b/tag/PageTranslationHooks.php
index c6fc5f1..4e9d44f 100644
--- a/tag/PageTranslationHooks.php
+++ b/tag/PageTranslationHooks.php
@@ -561,6 +561,9 @@
                        'read' => true,
                        'delete' => true,
                        'review' => true, // FlaggedRevs
+                       'undelete' => true,
+                       'deletedtext' => true,
+                       'deletedhistory' => true,
                );
 
                if ( $page !== false && !isset( $whitelist[$action] ) ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/293909
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id90bafeabbac7161c7f971259d1051d8dad24f31
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Glaisher <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to