Skip to content

Commit 77ff9e5

Browse files
committed
extend clone disk and service offerings to domain admins
1 parent d53591c commit 77ff9e5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

api/src/main/java/org/apache/cloudstack/api/command/admin/offering/CloneDiskOfferingCmd.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// under the License.
1717
package org.apache.cloudstack.api.command.admin.offering;
1818

19+
import org.apache.cloudstack.acl.RoleType;
1920
import org.apache.cloudstack.api.APICommand;
2021
import org.apache.cloudstack.api.ApiConstants;
2122
import org.apache.cloudstack.api.ApiErrorCode;
@@ -31,7 +32,8 @@
3132
responseObject = DiskOfferingResponse.class,
3233
requestHasSensitiveInfo = false,
3334
responseHasSensitiveInfo = false,
34-
since = "4.23.0")
35+
since = "4.23.0",
36+
authorized = {RoleType.Admin, RoleType.DomainAdmin})
3537
public class CloneDiskOfferingCmd extends CreateDiskOfferingCmd {
3638

3739
/////////////////////////////////////////////////////

api/src/main/java/org/apache/cloudstack/api/command/admin/offering/CloneServiceOfferingCmd.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// under the License.
1717
package org.apache.cloudstack.api.command.admin.offering;
1818

19+
import org.apache.cloudstack.acl.RoleType;
1920
import org.apache.cloudstack.api.APICommand;
2021
import org.apache.cloudstack.api.ApiConstants;
2122
import org.apache.cloudstack.api.ApiErrorCode;
@@ -30,7 +31,8 @@
3031
responseObject = ServiceOfferingResponse.class,
3132
requestHasSensitiveInfo = false,
3233
responseHasSensitiveInfo = false,
33-
since = "4.23.0")
34+
since = "4.23.0",
35+
authorized = {RoleType.Admin, RoleType.DomainAdmin})
3436
public class CloneServiceOfferingCmd extends CreateServiceOfferingCmd {
3537

3638
/////////////////////////////////////////////////////

0 commit comments

Comments
 (0)