Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

418 B
Raw Blame
from extensions.ext_application_services import application_services
from services.rbac.contracts import RBACResourceType


def get_app_permission_keys(tenant_id: str, account_id: str | None, app_id: str) -> list[str]:
    permission_keys_map = application_services().rbac.members.resource_permissions(
        tenant_id, account_id, RBACResourceType.APP, [app_id]
    )
    return permission_keys_map.get(app_id, [])