fix normal account migrate volume
package org.zstack.storage.primary.local
import org.zstack.header.core.StaticInit
+import org.zstack.header.volume.VolumeVO
import static org.zstack.header.identity.rbac.RBAC.rbac
@@ -10,11 +11,19 @@ static void init() {
permissions {
adminOnlyAPIs("org.zstack.storage.primary.local.**")
- normalAPIs(APILocalStorageGetVolumeMigratableHostsMsg.class.name)
+ normalAPIs(
+ APILocalStorageGetVolumeMigratableHostsMsg.class.name,
+ APILocalStorageMigrateVolumeMsg.class.name
+ )
+
+ targetResources = [VolumeVO.class]
contributeToRole {
roleName = "other"
- actions(APILocalStorageGetVolumeMigratableHostsMsg.class.name)
+ actions(
+ APILocalStorageGetVolumeMigratableHostsMsg.class.name,
+ APILocalStorageMigrateVolumeMsg.class.name
+ )
}
}
}
