Pcoombe has uploaded a new change for review.

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

Change subject: Add a "petitiondata" group with the right "view-petition-data"
......................................................................

Add a "petitiondata" group with the right "view-petition-data"

Add a "petitiondata" group by default with the user right
"view-petition-data".
This should save us from having to do extra configuration.

Change-Id: Iba8e297598aadf9de1b5a1f93b0233b7aa9fff3a
---
M Petition.php
M i18n/en.json
M i18n/qqq.json
3 files changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Petition 
refs/changes/04/146904/1

diff --git a/Petition.php b/Petition.php
index 73c1170..9cc3640 100644
--- a/Petition.php
+++ b/Petition.php
@@ -42,6 +42,9 @@
        return true;
 };
 
+$wgGroupPermissions['petitiondata']['view-petition-data'] = true;
+$wgAvailableRights[] = 'view-petition-data';
+
 /**
  * Options:
  *
diff --git a/i18n/en.json b/i18n/en.json
index 7497198..c1cd2e9 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -22,6 +22,7 @@
     "petition-data-download"  : "Download as CSV",
     "action-view-petition-data" : "view petition data",
     "right-view-petition-data": "View petition data",
+    "group-petitiondata"      : "Petition data viewers",
     "log-name-petition"       : "Petition signatures log",
     "log-description-petition": "Tracks signatures of petitions.",
     "logentry-petition-sign"  : "$1 {{GENDER:$2|signed}} petition \"$4\""
diff --git a/i18n/qqq.json b/i18n/qqq.json
index ac1093e..115a66a 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -22,6 +22,7 @@
     "petition-data-download"  : "Button on Special:PetitionData to download 
the list of all signatures.",
     "action-view-petition-data" : "{{doc-action|view-petition-data}}",
     "right-view-petition-data": "{{doc-right|view-petition-data}}",
+    "group-petitiondata"      : "{{doc-group|petitiondata}}",
     "log-name-petition"       : "Log page title",
     "log-description-petition": "Log page description",
     "logentry-petition-sign"  : "{{logentry}}\n* $1 is the username or IP 
address\n* $2 is the user's gender\n* $4 is the name of the petition which was 
signed"

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iba8e297598aadf9de1b5a1f93b0233b7aa9fff3a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Petition
Gerrit-Branch: master
Gerrit-Owner: Pcoombe <[email protected]>

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

Reply via email to