cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prachida...@apache.org
Subject git commit: updated refs/heads/affinity_groups to f92e265
Date Tue, 09 Apr 2013 22:05:24 GMT
Updated Branches:
  refs/heads/affinity_groups 8e9650d28 -> f92e26572


ACl on affinity group


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/f92e2657
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/f92e2657
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/f92e2657

Branch: refs/heads/affinity_groups
Commit: f92e2657219f39776dd49ec44403040d54f70400
Parents: 8e9650d
Author: Prachi Damle <prachi@cloud.com>
Authored: Mon Apr 8 13:27:18 2013 -0700
Committer: Prachi Damle <prachi@cloud.com>
Committed: Tue Apr 9 15:04:56 2013 -0700

----------------------------------------------------------------------
 server/src/com/cloud/vm/UserVmManagerImpl.java |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f92e2657/server/src/com/cloud/vm/UserVmManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/vm/UserVmManagerImpl.java b/server/src/com/cloud/vm/UserVmManagerImpl.java
index 97dd0df..7d290f2 100755
--- a/server/src/com/cloud/vm/UserVmManagerImpl.java
+++ b/server/src/com/cloud/vm/UserVmManagerImpl.java
@@ -2303,6 +2303,9 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager,
Use
                 AffinityGroupVO ag = _affinityGroupDao.findById(affinityGroupId);
                 if (ag == null) {
                     throw new InvalidParameterValueException("Unable to find affinity group
by id " + affinityGroupId);
+                } else {
+                    // verify permissions
+                    _accountMgr.checkAccess(caller, null, true, owner, ag);
                 }
             }
         }


Mime
View raw message