package org.zstack.core.config;

import org.zstack.header.identity.rbac.RBACDescription;

public class RBACInfo implements RBACDescription {
    @Override
    public void permissions() {
        permissionBuilder()
                .name("global-config")
                .adminOnlyAPIs("org.zstack.core.config.**")
                .normalAPIs(APIQueryGlobalConfigMsg.class)
                .build();
    }

    @Override
    public void contributeToRoles() {
        roleContributorBuilder()
                .roleName("other")
                .actions(APIQueryGlobalConfigMsg.class)
                .build();
    }

    @Override
    public void roles() {

    }

    @Override
    public void globalReadableResources() {

    }
}

@@ -81,16 +81,56 @@
 ription;
+%0Aimport org.zstack.header.vo.ResourceVO;
 %0A%0Apublic
@@ -398,32 +398,155 @@
 onfigMsg.class)%0A
+                .normalAPIs(%22org.zstack.core.config.resourceconfig.**%22)%0A                .targetResources(ResourceVO.class)%0A
                 

fix resource config permission