jenkins-bot has submitted this change and it was merged. Change subject: ExtendedSearch: Register new permission and add permission check on view of special page ......................................................................
ExtendedSearch: Register new permission and add permission check on view of special page Change-Id: Ifd8e47d5e4e540f85219f2e696147a82df5b1ad9 --- M ExtendedSearch/ExtendedSearch.class.php M ExtendedSearch/i18n/en.json M ExtendedSearch/i18n/qqq.json M ExtendedSearch/includes/specials/SpecialExtendedSearch.class.php 4 files changed, 12 insertions(+), 5 deletions(-) Approvals: Robert Vogel: Looks good to me, approved Mglaser: Looks good to me, but someone else must approve Raimond Spekking: Looks good to me, but someone else must approve jenkins-bot: Verified diff --git a/ExtendedSearch/ExtendedSearch.class.php b/ExtendedSearch/ExtendedSearch.class.php index 3810882..ae7f576 100644 --- a/ExtendedSearch/ExtendedSearch.class.php +++ b/ExtendedSearch/ExtendedSearch.class.php @@ -24,6 +24,7 @@ * @author Stephan Muggli <[email protected]> * @author Mathias Scheer <[email protected]> * @author Markus Glaser <[email protected]> + * @author Leonid Verhovskij <[email protected]> * @version 2.23.1 * @package BlueSpice_Extensions * @subpackage ExtendedSearch @@ -126,6 +127,7 @@ $this->setHook( 'SkinTemplateOutputPageBeforeExec' ); $this->mCore->registerPermission( 'searchfiles', array( 'user' ), array( 'type' => 'global' ) ); + $this->mCore->registerPermission( 'extendedsearch-viewspecialpage', array( 'user' ), array( 'type' => 'global' ) ); $this->resolveNamespaceBoostQueryConfig(); diff --git a/ExtendedSearch/i18n/en.json b/ExtendedSearch/i18n/en.json index 9b2d380..50575f7 100644 --- a/ExtendedSearch/i18n/en.json +++ b/ExtendedSearch/i18n/en.json @@ -1,7 +1,8 @@ { "@metadata": { "authors": [ - "Stephan Muggli <[email protected]>" + "Stephan Muggli <[email protected]>", + "Leonid Verhovskij <[email protected]>" ] }, "bs-extendedsearch-desc": "Apache Solr (http://lucene.apache.org/solr/) based search plugin to extend the search functionality", @@ -101,5 +102,7 @@ "bs-extendedsearch-more": "More", "bs-extendedsearch-fewer": "Less", "bs-extendedsearch-facetsetting-op-and": "AND", - "bs-extendedsearch-facetsetting-op-or": "OR" + "bs-extendedsearch-facetsetting-op-or": "OR", + "action-extendedsearch-viewspecialpage":"view the special page \"{{int:specialextendedsearch}}\"" + } diff --git a/ExtendedSearch/i18n/qqq.json b/ExtendedSearch/i18n/qqq.json index 26fb0b2..5b6a52f 100644 --- a/ExtendedSearch/i18n/qqq.json +++ b/ExtendedSearch/i18n/qqq.json @@ -8,7 +8,8 @@ "Smuggli", "Ата", "Shirayuki", - "Purodha" + "Purodha", + "Leonid Verhovskij <[email protected]>" ] }, "bs-extendedsearch-desc": "Used in [{{canonicalurl:Special:WikiAdmin|mode=ExtensionInfo}} Special:WikiAdmin?mode=ExtensionInfo], description of extended search extension.", @@ -108,5 +109,6 @@ "bs-extendedsearch-more": "Anchor text for more\n{{Identical|More}}", "bs-extendedsearch-fewer": "Anchor text for less\n{{Identical|Less}}", "bs-extendedsearch-facetsetting-op-and": "Label for setting of logical AND operator. Should be upper case\n{{Identical|And}}", - "bs-extendedsearch-facetsetting-op-or": "Label for setting of logical OR operator. Should be upper case\n{{Identical|Or}}" + "bs-extendedsearch-facetsetting-op-or": "Label for setting of logical OR operator. Should be upper case\n{{Identical|Or}}", + "action-extendedsearch-viewspecialpage": "placeholder to describe that view of special page \"{{int:specialextendedsearch}}\" is restricted for the current user" } diff --git a/ExtendedSearch/includes/specials/SpecialExtendedSearch.class.php b/ExtendedSearch/includes/specials/SpecialExtendedSearch.class.php index 7484811..4d74394 100644 --- a/ExtendedSearch/includes/specials/SpecialExtendedSearch.class.php +++ b/ExtendedSearch/includes/specials/SpecialExtendedSearch.class.php @@ -21,7 +21,7 @@ * Constructor of SpecialExtendedSearch class */ public function __construct() { - parent::__construct( 'SpecialExtendedSearch' ); + parent::__construct( 'SpecialExtendedSearch', 'extendedsearch-viewspecialpage' ); } /** -- To view, visit https://gerrit.wikimedia.org/r/303811 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ifd8e47d5e4e540f85219f2e696147a82df5b1ad9 Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions Gerrit-Branch: master Gerrit-Owner: Ljonka <[email protected]> Gerrit-Reviewer: Dvogel hallowelt <[email protected]> Gerrit-Reviewer: Mglaser <[email protected]> Gerrit-Reviewer: Pwirth <[email protected]> Gerrit-Reviewer: Raimond Spekking <[email protected]> Gerrit-Reviewer: Robert Vogel <[email protected]> Gerrit-Reviewer: Siebrand <[email protected]> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
