From: Darian Anthony Patrick Date: Mon, 8 Aug 2016 23:54:59 +0000 (-0700) Subject: Add grant for access to private information X-Git-Tag: 1.31.0-rc.0~6065^2 X-Git-Url: http://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=8613fdfe0203bf78067173dcc3fedd24a5f476fc Add grant for access to private information Add 'viewmyprivateinfo' user right, which controls access to information like email and real name. Bug: T68493 Change-Id: I9f7de8ad77a1592707695cb5c1983b8f4cace1b6 --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 3c5e2d2bf3..87dbd97415 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -5706,6 +5706,8 @@ $wgGrantPermissions['sendemail']['sendemail'] = true; $wgGrantPermissions['createaccount']['createaccount'] = true; +$wgGrantPermissions['privateinfo']['viewmyprivateinfo'] = true; + /** * @var Array Map of grants to their UI grouping * @since 1.27 @@ -5739,6 +5741,8 @@ $wgGrantPermissionGroups = [ 'createaccount' => 'administration', 'highvolume' => 'high-volume', + + 'privateinfo' => 'private-information', ]; /** diff --git a/languages/i18n/en.json b/languages/i18n/en.json index cddc30e492..e29d60c5f1 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -1259,6 +1259,7 @@ "grant-group-high-volume": "Perform high volume activity", "grant-group-customization": "Customization and preferences", "grant-group-administration": "Perform administrative actions", + "grant-group-private-information": "Access private data about you", "grant-group-other": "Miscellaneous activity", "grant-blockusers": "Block and unblock users", "grant-createaccount": "Create accounts", @@ -1273,6 +1274,7 @@ "grant-highvolume": "High-volume editing", "grant-oversight": "Hide users and suppress revisions", "grant-patrol": "Patrol changes to pages", + "grant-privateinfo": "Access private information", "grant-protect": "Protect and unprotect pages", "grant-rollback": "Rollback changes to pages", "grant-sendemail": "Send email to other users", diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json index 054ab426c6..261ca25615 100644 --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@ -1433,7 +1433,7 @@ "right-applychangetags": "{{doc-right|applychangetags}}", "right-changetags": "{{doc-right|changetags}}", "right-deletechangetags": "{{doc-right|deletechangetags}}", - "grant-generic": "Used if the grant name is not defined. Parameters:\n* $1 - grant name\n\nDefined grants (grant name refers: blockusers, createeditmovepage, ...):\n* {{msg-mw|grant-checkuser}}\n* {{msg-mw|grant-blockusers}}\n* {{msg-mw|grant-createaccount}}\n* {{msg-mw|grant-createeditmovepage}}\n* {{msg-mw|grant-delete}}\n* {{msg-mw|grant-editinterface}}\n* {{msg-mw|grant-editmycssjs}}\n* {{msg-mw|grant-editmyoptions}}\n* {{msg-mw|grant-editmywatchlist}}\n* {{msg-mw|grant-editpage}}\n* {{msg-mw|grant-editprotected}}\n* {{msg-mw|grant-highvolume}}\n* {{msg-mw|grant-oversight}}\n* {{msg-mw|grant-patrol}}\n* {{msg-mw|grant-protect}}\n* {{msg-mw|grant-rollback}}\n* {{msg-mw|grant-sendemail}}\n* {{msg-mw|grant-uploadeditmovefile}}\n* {{msg-mw|grant-uploadfile}}\n* {{msg-mw|grant-basic}}\n* {{msg-mw|grant-viewdeleted}}\n* {{msg-mw|grant-viewmywatchlist}}", + "grant-generic": "Used if the grant name is not defined. Parameters:\n* $1 - grant name\n\nDefined grants (grant name refers: blockusers, createeditmovepage, ...):\n* {{msg-mw|grant-checkuser}}\n* {{msg-mw|grant-blockusers}}\n* {{msg-mw|grant-createaccount}}\n* {{msg-mw|grant-createeditmovepage}}\n* {{msg-mw|grant-delete}}\n* {{msg-mw|grant-editinterface}}\n* {{msg-mw|grant-editmycssjs}}\n* {{msg-mw|grant-editmyoptions}}\n* {{msg-mw|grant-editmywatchlist}}\n* {{msg-mw|grant-editpage}}\n* {{msg-mw|grant-editprotected}}\n* {{msg-mw|grant-highvolume}}\n* {{msg-mw|grant-oversight}}\n* {{msg-mw|grant-patrol}}\n* {{msg-mw|grant-privateinfo}}\n* {{msg-mw|grant-protect}}\n* {{msg-mw|grant-rollback}}\n* {{msg-mw|grant-sendemail}}\n* {{msg-mw|grant-uploadeditmovefile}}\n* {{msg-mw|grant-uploadfile}}\n* {{msg-mw|grant-basic}}\n* {{msg-mw|grant-viewdeleted}}\n* {{msg-mw|grant-viewmywatchlist}}", "grant-group-page-interaction": "{{Related|grant-group}}", "grant-group-file-interaction": "{{Related|grant-group}}", "grant-group-watchlist-interaction": "{{Related|grant-group}}", @@ -1441,6 +1441,7 @@ "grant-group-high-volume": "{{Related|Grant-group}}", "grant-group-customization": "{{Related|Grant-group}}", "grant-group-administration": "{{Related|Grant-group}}", + "grant-group-private-information": "{{Related|Grant-group}}", "grant-group-other": "{{Related|Grant-group}}", "grant-blockusers": "Name for grant \"blockusers\".\n{{Related|Grant}}", "grant-createaccount": "Name for grant \"createaccount\".\n{{Related|grant}}", @@ -1454,6 +1455,7 @@ "grant-editprotected": "Name for grant \"editprotected\".\n{{Related|grant}}", "grant-highvolume": "Name for grant \"highvolume\".\n{{Related|grant}}", "grant-oversight": "Name for grant \"oversight\".\n{{Related|grant}}", + "grant-privateinfo": "Name for grant \"privateinfo\".\n{{Related|grant}}", "grant-patrol": "Name for grant \"patrol\".\n{{Related|grant}}", "grant-protect": "Name for grant \"protect\".\n{{Related|grant}}", "grant-rollback": "Name for grant \"rollback\".\n{{Related|grant}}",