Clarify naming.
[lgpl/argeo-commons.git] / org.argeo.api / src / org / argeo / api / NodeUtils.java
index f64cbe6f71ed14e2e9520e86675b9f1af9b8d204..e156e1f172646f683aa11ebc5957dbd3737b6cca 100644 (file)
@@ -128,7 +128,7 @@ public class NodeUtils {
 
        private static void checkUserWorkspace(Session session, String username) {
                String workspaceName = session.getWorkspace().getName();
-               if (!NodeConstants.HOME.equals(workspaceName))
+               if (!NodeConstants.HOME_WORKSPACE.equals(workspaceName))
                        throw new IllegalArgumentException(workspaceName + " is not the home workspace for user " + username);
        }
 
@@ -182,7 +182,7 @@ public class NodeUtils {
 
        private static void checkGroupWorkspace(Session session, String groupname) {
                String workspaceName = session.getWorkspace().getName();
-               if (!NodeConstants.SRV.equals(workspaceName))
+               if (!NodeConstants.SRV_WORKSPACE.equals(workspaceName))
                        throw new IllegalArgumentException(workspaceName + " is not the group workspace for group " + groupname);
        }