+11




![autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>](/assets/img/avatar_default.png)




Wu Tianwei
GitHub
fatelei
Copilot
autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
盐粒 Yanli
Charles Yao
Claude Opus 4.8
yunlu.wen
yyh
Jingyi
yyh
Joel
hjlarry
Asuka Minato
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Xiyuan Chen
gigglewang
chariri
Evan
zyssyz123
33edf97f81
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: fatelei <[email protected]> Co-authored-by: Copilot <[email protected]> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: 盐粒 Yanli <[email protected]> Co-authored-by: Charles Yao <[email protected]> Co-authored-by: Claude Opus 4.8 <[email protected]> Co-authored-by: yunlu.wen <[email protected]> Co-authored-by: yyh <[email protected]> Co-authored-by: Jingyi <[email protected]> Co-authored-by: yyh <[email protected]> Co-authored-by: Joel <[email protected]> Co-authored-by: hjlarry <[email protected]> Co-authored-by: Asuka Minato <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Xiyuan Chen <[email protected]> Co-authored-by: gigglewang <[email protected]> Co-authored-by: chariri <[email protected]> Co-authored-by: Evan <[email protected]> Co-authored-by: zyssyz123 <[email protected]>
7 lines
336 B
Python
7 lines
336 B
Python
from services.enterprise import rbac_service as enterprise_rbac_service
|
|
|
|
|
|
def get_app_permission_keys(tenant_id: str, account_id: str | None, app_id: str) -> list[str]:
|
|
permission_keys_map = enterprise_rbac_service.RBACService.AppPermissions.batch_get(tenant_id, account_id, [app_id])
|
|
return permission_keys_map.get(app_id, [])
|