From 125b464ab2bb623a7bf4f28392a07db9a3d8ee20 Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Wed, 26 Oct 2016 15:20:17 -0400 Subject: [PATCH] Add a grant for viewing restricted log entries In core this holds the 'suppressionlog' right. SpamBlacklist and TitleBlacklist would add their permissions here as well. Bug: T149235 Change-Id: I8e2304e7b6f2af0c3d21d7d7390e4979b8eaee39 --- includes/DefaultSettings.php | 3 +++ languages/i18n/en.json | 1 + languages/i18n/qqq.json | 1 + 3 files changed, 5 insertions(+) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 98dd2b7b4f..0b0016c8b1 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -5747,6 +5747,8 @@ $wgGrantPermissions['viewdeleted']['browsearchive'] = true; $wgGrantPermissions['viewdeleted']['deletedhistory'] = true; $wgGrantPermissions['viewdeleted']['deletedtext'] = true; +$wgGrantPermissions['viewrestrictedlogs']['suppressionlog'] = true; + $wgGrantPermissions['delete'] = $wgGrantPermissions['editpage'] + $wgGrantPermissions['viewdeleted']; $wgGrantPermissions['delete']['delete'] = true; @@ -5797,6 +5799,7 @@ $wgGrantPermissionGroups = [ 'blockusers' => 'administration', 'delete' => 'administration', 'viewdeleted' => 'administration', + 'viewrestrictedlogs' => 'administration', 'protect' => 'administration', 'createaccount' => 'administration', diff --git a/languages/i18n/en.json b/languages/i18n/en.json index 3d272a311a..c7599845ab 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -1285,6 +1285,7 @@ "grant-basic": "Basic rights", "grant-viewdeleted": "View deleted files and pages", "grant-viewmywatchlist": "View your watchlist", + "grant-viewrestrictedlogs": "View restricted log entries", "newuserlogpage": "User creation log", "newuserlogpagetext": "This is a log of user creations.", "rightslog": "User rights log", diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json index cde257574e..04048d401a 100644 --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@ -1469,6 +1469,7 @@ "grant-basic": "Name for grant \"basic\".\n{{Related|Grant}}", "grant-viewdeleted": "Name for grant \"viewdeleted\".\n{{Related|Grant}}", "grant-viewmywatchlist": "Name for grant \"viewmywatchlist\".\n{{Related|Grant}}\n{{Identical|View your watchlist}}", + "grant-viewrestrictedlogs": "Name for grant \"viewrestrictedlogs\".\n{{Related|Grant}}", "newuserlogpage": "{{doc-logpage}}\n\nPart of the \"Newuserlog\" extension. It is both the title of [[Special:Log/newusers]] and the link you can see in [[Special:RecentChanges]].", "newuserlogpagetext": "Part of the \"Newuserlog\" extension. It is the description you can see on [[Special:Log/newusers]].", "rightslog": "{{doc-logpage}}\n\nIn [[Special:Log]]", -- 2.20.1