Jack Phoenix has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/359065 )

Change subject: Version 1.6.0: show the customized error page to anons on 
action=edit
......................................................................

Version 1.6.0: show the customized error page to anons on action=edit

Change-Id: If13c2997343879e4ec207b943766fe3f1a510365
---
M PrivateDomainsHooks.php
M extension.json
2 files changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PrivateDomains 
refs/changes/65/359065/1

diff --git a/PrivateDomainsHooks.php b/PrivateDomainsHooks.php
index 7978536..0ec8296 100644
--- a/PrivateDomainsHooks.php
+++ b/PrivateDomainsHooks.php
@@ -17,6 +17,7 @@
                global $wgUser;
                $groups = $wgUser->getEffectiveGroups();
                if (
+                       $wgUser->isAnon() ||
                        $wgUser->isLoggedIn() && !in_array( 'privatedomains', 
$groups ) &&
                        !in_array( 'staff', $groups ) && !in_array( 
'bureaucrat', $groups )
                )
diff --git a/extension.json b/extension.json
index d2ec519..0df24b9 100644
--- a/extension.json
+++ b/extension.json
@@ -1,6 +1,6 @@
 {
        "name": "PrivateDomains",
-       "version": "1.5.0",
+       "version": "1.6.0",
        "author": [
                "Inez KorczyƄski",
                "Jack Phoenix"

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If13c2997343879e4ec207b943766fe3f1a510365
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PrivateDomains
Gerrit-Branch: master
Gerrit-Owner: Jack Phoenix <j...@countervandalism.net>

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

Reply via email to