[pLog-svn] r4117 - plugins/branches/lifetype-1.1/secret/class/security

oscar at devel.lifetype.net oscar at devel.lifetype.net
Tue Oct 10 21:18:11 GMT 2006


Author: oscar
Date: 2006-10-10 21:18:09 +0000 (Tue, 10 Oct 2006)
New Revision: 4117

Modified:
   plugins/branches/lifetype-1.1/secret/class/security/secretitemfilter.class.php
Log:
fixed issue 1085 (http://bugs.lifetype.net/view.php?id=1085) -- the filter that checks the authentication in order to allow or disallow reading a post was getting activated every single time, instead of doing it only for the ViewArticle action.


Modified: plugins/branches/lifetype-1.1/secret/class/security/secretitemfilter.class.php
===================================================================
--- plugins/branches/lifetype-1.1/secret/class/security/secretitemfilter.class.php	2006-10-10 15:27:22 UTC (rev 4116)
+++ plugins/branches/lifetype-1.1/secret/class/security/secretitemfilter.class.php	2006-10-10 21:18:09 UTC (rev 4117)
@@ -30,7 +30,11 @@
             $blogInfo = $this->_pipelineRequest->getBlogInfo();
             $request  = $this->_pipelineRequest->getHttpRequest();
             $session  = HttpVars::getSession();
-            
+
+		// if we're not loading an article, we can ignore this 
+		if( $request->getValue( "op" ) != "ViewArticle" )
+			return new PipelineResult();
+
             // if this is already rejected, there is no reason to do anything here
             if ( $this->_pipelineRequest->getRejectedState() )
                 return new PipelineResult();



More information about the pLog-svn mailing list