From 54a4af2a0c3e1cfb90cf383117abb4342d2dfd7d Mon Sep 17 00:00:00 2001 From: Edison Su Date: Tue, 21 Jun 2011 14:32:48 -0400 Subject: [PATCH] bug 10092: fix the Long compare status 10092: resolved fixed --- server/src/com/cloud/user/AccountManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/com/cloud/user/AccountManagerImpl.java b/server/src/com/cloud/user/AccountManagerImpl.java index f584aa1aef1..1679b31774d 100755 --- a/server/src/com/cloud/user/AccountManagerImpl.java +++ b/server/src/com/cloud/user/AccountManagerImpl.java @@ -959,7 +959,7 @@ public class AccountManagerImpl implements AccountManager, AccountService, Manag if (isResourceDomainAdmin(caller.getType())) { if (zoneId == null) return getZoneIdForAccount(caller); - else if (getZoneIdForAccount(caller) != zoneId) + else if (zoneId.compareTo(getZoneIdForAccount(caller)) != 0) throw new PermissionDeniedException("Caller " + caller + "is not allowed to access the zone " + zoneId); else return zoneId;