diff --git a/api/src/org/apache/cloudstack/acl/AclRolePermission.java b/api/src/org/apache/cloudstack/acl/AclRolePermission.java index 69259e2bfdf..0c0c0de3b6a 100644 --- a/api/src/org/apache/cloudstack/acl/AclRolePermission.java +++ b/api/src/org/apache/cloudstack/acl/AclRolePermission.java @@ -30,4 +30,6 @@ public interface AclRolePermission extends InternalIdentity { PermissionScope getScope(); boolean isAllowed(); + + PermissionScope getScope(); } diff --git a/api/src/org/apache/cloudstack/api/command/user/vm/StartVMCmd.java b/api/src/org/apache/cloudstack/api/command/user/vm/StartVMCmd.java index 8441ac670e5..e971ff2ee45 100644 --- a/api/src/org/apache/cloudstack/api/command/user/vm/StartVMCmd.java +++ b/api/src/org/apache/cloudstack/api/command/user/vm/StartVMCmd.java @@ -16,6 +16,8 @@ // under the License. package org.apache.cloudstack.api.command.user.vm; +import org.apache.cloudstack.acl.SecurityChecker.AccessType; +import org.apache.cloudstack.api.ACL; import org.apache.cloudstack.api.APICommand; import org.apache.cloudstack.api.ApiCommandJobType; import org.apache.cloudstack.api.ApiConstants; @@ -50,6 +52,7 @@ public class StartVMCmd extends BaseAsyncCmd { // ////////////// API parameters ///////////////////// // /////////////////////////////////////////////////// + @ACL(accessType = AccessType.OperateEntry) @Parameter(name = ApiConstants.ID, type = CommandType.UUID, entityType=UserVmResponse.class, required = true, description = "The ID of the virtual machine") private Long id; diff --git a/client/pom.xml b/client/pom.xml index f44160146fd..99a3c3e1e92 100644 --- a/client/pom.xml +++ b/client/pom.xml @@ -34,6 +34,11 @@ cloud-plugin-acl-static-role-based ${project.version} + + org.apache.cloudstack + cloud-plugin-acl-role-based-access-checkers + ${project.version} + org.apache.cloudstack cloud-plugin-dedicated-resources diff --git a/client/tomcatconf/applicationContext.xml.in b/client/tomcatconf/applicationContext.xml.in index 1095e0a578c..da242b34746 100644 --- a/client/tomcatconf/applicationContext.xml.in +++ b/client/tomcatconf/applicationContext.xml.in @@ -389,6 +389,7 @@ +