Rjain has uploaded a new change for review.

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


Change subject: (bug 52260) Allow logged out users to view
......................................................................

(bug 52260) Allow logged out users to view

Change-Id: I3b7174ec78c9419fe56871dc46fc0f06826dd138
---
M Annotator.hooks.php
M modules/Annotator.js
2 files changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Annotator 
refs/changes/76/77576/1

diff --git a/Annotator.hooks.php b/Annotator.hooks.php
index 2982fe5..1364833 100755
--- a/Annotator.hooks.php
+++ b/Annotator.hooks.php
@@ -29,7 +29,7 @@
                /*
                 module is added only when then namespace matches and user is 
logged in
                */
-                if( $skin->getTitle()->inNamespaces( array( NS_MAIN, NS_TALK, 
NS_CATEGORY ) ) && $output->getUser()->isLoggedIn() ) {
+                if( $skin->getTitle()->inNamespaces( array( NS_MAIN, NS_TALK, 
NS_CATEGORY ) ) ) {
                        $output->addModules( 'ext.annotator' );
                }
                return true;            
diff --git a/modules/Annotator.js b/modules/Annotator.js
index b4ab400..36c5e07 100755
--- a/modules/Annotator.js
+++ b/modules/Annotator.js
@@ -10,7 +10,7 @@
                //Get the userId
                userId = mw.config.get( 'wgUserId' );
                //Call the annotations
-               annotations = $( '#mw-content-text' ).annotator();
+               annotations = $( '#mw-content-text' ).annotator({ readOnly: 
true });
                //Add the store plugin and modify the urls according to 
mediawiki api
                annotations.annotator( 'addPlugin', 'Store', {
                        prefix: mw.util.wikiScript( 'api' ),

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3b7174ec78c9419fe56871dc46fc0f06826dd138
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Annotator
Gerrit-Branch: master
Gerrit-Owner: Rjain <richa.jain1...@gmail.com>
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