package org.zstack.resourceconfig;

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

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

    @Override
    public void contributeToRoles() {

    }

    @Override
    public void roles() {

    }

    @Override
    public void globalReadableResources() {

    }
}

@@ -478,32 +478,183 @@
 buteToRoles() %7B%0A
+        roleContributorBuilder()%0A                .roleName(%22other%22)%0A                .actionsByPermissionName(%22global-config%22)%0A                .build();
 %0A    %7D%0A%0A    @Ove

add resource config permission to others