incubator-lokahi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tob...@apache.org
Subject svn commit: r450561 - /incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/api/environment/EnvironmentModel.java
Date Wed, 27 Sep 2006 19:59:08 GMT
Author: toback
Date: Wed Sep 27 12:59:08 2006
New Revision: 450561

URL: http://svn.apache.org/viewvc?view=rev&rev=450561
Log:
Fixed Copy & Paste error.

Modified:
    incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/api/environment/EnvironmentModel.java

Modified: incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/api/environment/EnvironmentModel.java
URL: http://svn.apache.org/viewvc/incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/api/environment/EnvironmentModel.java?view=diff&rev=450561&r1=450560&r2=450561
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/api/environment/EnvironmentModel.java
(original)
+++ incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/api/environment/EnvironmentModel.java
Wed Sep 27 12:59:08 2006
@@ -6,9 +6,9 @@
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
-* 
+*
 *   http://www.apache.org/licenses/LICENSE-2.0
-* 
+*
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -66,7 +66,7 @@
 
   public void updateEnvironment(User u, Environment e, Function f) throws SQLException, TMCException
{
     jpInit(f, u, e.getName());
-    if (u.isAllowed(f) && "DeleteEnvironment".equals(f.getCommand())) {
+    if (u.isAllowed(f) && "UpdateEnvironment".equals(f.getCommand())) {
       if (e.getPk() < 1 || e.getName() == null) {
         throw new IllegalArgumentException("error.badData");
       }



Mime
View raw message