jenkins-bot has submitted this change and it was merged.

Change subject: Add newsletter-create right
......................................................................


Add newsletter-create right

This right is given to autoconfirmed users by default.

Bug: T110327
Change-Id: If55018a1810c232056ffe549899f4c4e0d5c3c25
---
M extension.json
M i18n/en.json
M i18n/qqq.json
M includes/specials/SpecialNewsletterCreate.php
4 files changed, 10 insertions(+), 2 deletions(-)

Approvals:
  Addshore: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/extension.json b/extension.json
index b52eaf8..8883075 100644
--- a/extension.json
+++ b/extension.json
@@ -10,9 +10,13 @@
        "license-name": "GPL-2.0",
        "type": "other",
        "AvailableRights": [
+               "newsletter-create",
                "newsletter-manage"
        ],
        "GroupPermissions": {
+               "autoconfirmed": {
+                       "newsletter-create": true
+               },
                "sysop": {
                        "newsletter-manage": true
                }
diff --git a/i18n/en.json b/i18n/en.json
index 94be3de..4e1161d 100755
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -96,8 +96,10 @@
        "newsletter-manage-header-action": "Action",
        "newsletter-publisher-radiobutton-label": "Publisher",
        "newsletter-dropdown-default-message": "Please select one",
+       "right-newsletter-create": "Create newsletters",
+       "action-newsletter-create": "create newsletters",
        "right-newsletter-manage": "Add or remove publishers from newsletters",
-       "action-newsletter-manage": "manage newsletters.",
+       "action-newsletter-manage": "manage newsletters",
        "newsletters-summary": "This page allows you to browse through a list 
of all newsletters on this wiki and allows users to subscribe to or unsubscribe 
from them. You can also choose your newsletter subscription options through the 
 [[Special:Preferences#mw-prefsection-echo|preferences]] interface.",
        "apihelp-newslettersubscribe-description": "Subscribe to or unsubscribe 
from a newsletter.",
        "apihelp-newslettersubscribe-param-id": "ID of the newsletter for which 
the subscription should be changed.",
diff --git a/i18n/qqq.json b/i18n/qqq.json
index 863e0f4..f4dae71 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -100,6 +100,8 @@
        "newsletter-manage-header-action": "{{Identical|Action}}",
        "newsletter-publisher-radiobutton-label": "Label of radio button in 
'Permissions' column in [[Special:ManageNewsletter]] which is checked if the 
user is a publisher of the newsletter\n{{Identical|Publisher}}",
        "newsletter-dropdown-default-message": "Default option of drop down 
menus to select newsletters in [[Special:ManageNewsletter]].\n\nSee also:\n* 
{{msg-mw|Newsletter-name}} (label of the field)",
+       "right-newsletter-create": "{{doc-right|newsletter-create}}",
+       "action-newsletter-create": "{{doc-action|newsletter-create}}",
        "right-newsletter-manage": "{{doc-right|newsletter-manage}}",
        "action-newsletter-manage": "{{doc-action|newsletter-manage}}",
        "newsletters-summary": "Introductory message shown on top of 
[[Special:Newsletters]]. Do not translate the anchor of Special:Preferences 
link. (\"#mw-prefsection-echo\" part).",
diff --git a/includes/specials/SpecialNewsletterCreate.php 
b/includes/specials/SpecialNewsletterCreate.php
index 5e91b71..ddbce76 100644
--- a/includes/specials/SpecialNewsletterCreate.php
+++ b/includes/specials/SpecialNewsletterCreate.php
@@ -10,7 +10,7 @@
 
 
        public function __construct() {
-               parent::__construct( 'NewsletterCreate' );
+               parent::__construct( 'NewsletterCreate', 'newsletter-create' );
        }
 
        public function execute( $par ) {

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

Gerrit-MessageType: merged
Gerrit-Change-Id: If55018a1810c232056ffe549899f4c4e0d5c3c25
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Newsletter
Gerrit-Branch: master
Gerrit-Owner: Glaisher <glaisher.w...@gmail.com>
Gerrit-Reviewer: Addshore <addshorew...@gmail.com>
Gerrit-Reviewer: Siebrand <siebr...@kitano.nl>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to