Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -801,6 +801,7 @@ |
802 | 802 | $wgGroupPermissions['sysop']['block'] = true; |
803 | 803 | $wgGroupPermissions['sysop']['createaccount'] = true; |
804 | 804 | $wgGroupPermissions['sysop']['delete'] = true; |
| 805 | +$wgGroupPermissions['sysop']['deletedhistory'] = true; / can view deleted history entries, but not see or restore the text |
805 | 806 | $wgGroupPermissions['sysop']['editinterface'] = true; |
806 | 807 | $wgGroupPermissions['sysop']['import'] = true; |
807 | 808 | $wgGroupPermissions['sysop']['importupload'] = true; |
Index: trunk/phase3/includes/Skin.php |
— | — | @@ -644,7 +644,8 @@ |
645 | 645 | |
646 | 646 | function getUndeleteLink() { |
647 | 647 | global $wgUser, $wgTitle, $wgContLang, $action; |
648 | | - if( (($wgTitle->getArticleId() == 0) || ($action == "history")) && |
| 648 | + if( $wgUser->isAllowed( 'deletedhistory' ) && |
| 649 | + (($wgTitle->getArticleId() == 0) || ($action == "history")) && |
649 | 650 | ($n = $wgTitle->isDeleted() ) ) |
650 | 651 | { |
651 | 652 | if ( $wgUser->isAllowed( 'delete' ) ) { |
Index: trunk/phase3/includes/SpecialPage.php |
— | — | @@ -70,7 +70,7 @@ |
71 | 71 | 'Allmessages' => new SpecialPage( 'Allmessages' ), |
72 | 72 | 'Log' => new SpecialPage( 'Log' ), |
73 | 73 | 'Blockip' => new SpecialPage( 'Blockip', 'block' ), |
74 | | - 'Undelete' => new SpecialPage( 'Undelete' ), |
| 74 | + 'Undelete' => new SpecialPage( 'Undelete', 'deletedhistory' ), |
75 | 75 | "Import" => new SpecialPage( "Import", 'import' ), |
76 | 76 | 'Lockdb' => new SpecialPage( 'Lockdb', 'siteadmin' ), |
77 | 77 | 'Unlockdb' => new SpecialPage( 'Unlockdb', 'siteadmin' ), |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -354,6 +354,10 @@ |
355 | 355 | to vanish mysteriously from time to time for files that didn't have metadata. |
356 | 356 | * Added 'PageRenderingHash' hook for changing the parser cache hash key |
357 | 357 | from an extension that changes rendering based on nonstandard options. |
| 358 | +* Add 'deletedhistory' permission key for ability to view deleted history |
| 359 | + list via Special:Undelete. Default is off, replicating the 1.5 behavior, |
| 360 | + but it can be turned back on for random users to replicate the previous |
| 361 | + 1.6 dev behavior. |
358 | 362 | |
359 | 363 | |
360 | 364 | === Caveats === |