chore(api): remove unnecessary str calls in openapi controllers (#42931)

This commit is contained in:
henrydev23 authored and GitHub committed 2026-09-28 02:17:48 +00:00
1 parent 2062d5e892
commit 174a908786
3 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -134,7 +134,7 @@ class CheckRBACPermission(Requirement):
if not dify_config.RBAC_ENABLED:
return
enforce_rbac_checks(
tenant_id=str(load_workspace(ctx).id),
tenant_id=load_workspace(ctx).id,
account_id=str(subject.account_id),
checks=self.checks,
path_args=dict(ctx.view_args),
@@ -170,7 +170,7 @@ class CheckAppAccess(Requirement):
def run(self, subject: Subject, ctx: Context, session: Session) -> None:
if dify_config.DEPLOYMENT_EDITION != DeploymentEdition.ENTERPRISE:
return
access_mode = self._access_mode(str(load_app(ctx).id))
access_mode = self._access_mode(load_app(ctx).id)
if SystemFeatureService.get_public_system_features().webapp_auth.enabled:
self._assert_mode_allowed(subject, access_mode)
if access_mode == WebAppAccessMode.PRIVATE: