You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by pr...@apache.org on 2014/04/04 08:32:43 UTC
[2/4] git commit: updated refs/heads/4.4 to 8a46539
All BaseAsyncCreateCmd commands will also be grouped into "OperateEntry" accesstype
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/f2ab2c10
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/f2ab2c10
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/f2ab2c10
Branch: refs/heads/4.4
Commit: f2ab2c10b800126583febdf15d951f53661afaba
Parents: 458acc7
Author: Prachi Damle <pr...@cloud.com>
Authored: Wed Apr 2 11:34:59 2014 -0700
Committer: Prachi Damle <pr...@cloud.com>
Committed: Thu Apr 3 23:07:07 2014 -0700
----------------------------------------------------------------------
.../plugin/src/org/apache/cloudstack/iam/IAMApiServiceImpl.java | 2 +-
.../src/org/apache/cloudstack/iam/RoleBasedAPIAccessChecker.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f2ab2c10/services/iam/plugin/src/org/apache/cloudstack/iam/IAMApiServiceImpl.java
----------------------------------------------------------------------
diff --git a/services/iam/plugin/src/org/apache/cloudstack/iam/IAMApiServiceImpl.java b/services/iam/plugin/src/org/apache/cloudstack/iam/IAMApiServiceImpl.java
index 3dfcdda..3c17f68 100644
--- a/services/iam/plugin/src/org/apache/cloudstack/iam/IAMApiServiceImpl.java
+++ b/services/iam/plugin/src/org/apache/cloudstack/iam/IAMApiServiceImpl.java
@@ -516,7 +516,7 @@ public class IAMApiServiceImpl extends ManagerBase implements IAMApiService, Man
} else {
accessType = AccessType.UseEntry;
}
- } else if (!(BaseAsyncCreateCmd.class.isAssignableFrom(cmdClass))) {
+ } else {
accessType = AccessType.OperateEntry;
}
String accessTypeStr = (accessType != null) ? accessType.toString() : null;
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f2ab2c10/services/iam/plugin/src/org/apache/cloudstack/iam/RoleBasedAPIAccessChecker.java
----------------------------------------------------------------------
diff --git a/services/iam/plugin/src/org/apache/cloudstack/iam/RoleBasedAPIAccessChecker.java b/services/iam/plugin/src/org/apache/cloudstack/iam/RoleBasedAPIAccessChecker.java
index b7f672c..c5e84d1 100644
--- a/services/iam/plugin/src/org/apache/cloudstack/iam/RoleBasedAPIAccessChecker.java
+++ b/services/iam/plugin/src/org/apache/cloudstack/iam/RoleBasedAPIAccessChecker.java
@@ -252,7 +252,7 @@ public class RoleBasedAPIAccessChecker extends AdapterBase implements APIChecker
accessType = AccessType.ListEntry;
addAccountScopedUseEntry = true;
}
- } else if (!(cmdObj instanceof BaseAsyncCreateCmd)) {
+ } else {
accessType = AccessType.OperateEntry;
}
} catch (Exception e) {