mirror of
https://github.com/langgenius/dify.git
synced 2026-11-10 21:35:45 +08:00
chore(api): remove unnecessary str calls in openapi controllers (#42931)
This commit is contained in:
1 parent
2062d5e892
commit
174a908786
3 files changed
+7
-7
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user