You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ch...@apache.org on 2005/09/09 23:10:21 UTC

svn commit: r279880 - /lenya/trunk/src/java/org/apache/lenya/cms/repository/SourceNode.java

Author: chestnut
Date: Fri Sep  9 14:10:19 2005
New Revision: 279880

URL: http://svn.apache.org/viewcvs?rev=279880&view=rev
Log:
isCheckedOutByUser method shouldn't assume that the latest entry is a checkout

Modified:
    lenya/trunk/src/java/org/apache/lenya/cms/repository/SourceNode.java

Modified: lenya/trunk/src/java/org/apache/lenya/cms/repository/SourceNode.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/java/org/apache/lenya/cms/repository/SourceNode.java?rev=279880&r1=279879&r2=279880&view=diff
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/cms/repository/SourceNode.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/cms/repository/SourceNode.java Fri Sep  9 14:10:19 2005
@@ -125,7 +125,7 @@
     public boolean isCheckedOutByUser() throws RepositoryException {
         try {
             RCMLEntry entry = getRevisionController().getRCML(getRCPath()).getLatestEntry();
-            if (entry.getIdentity().equals(getUserId()))
+            if (entry.getIdentity().equals(getUserId()) && isCheckedOut())
                 return true;
             else
                 return false;



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org