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.

chore: remove app and dataset detail rbac check (#42729)

wangxiaolei7ed4ab0b3289
diff --git a/api/controllers/console/app/app.py b/api/controllers/console/app/app.py
index 63433f38a93..51332a9b5ae 100644
--- a/api/controllers/console/app/app.py
+++ b/api/controllers/console/app/app.py
@@ -890,7 +890,6 @@ class AppApi(Resource):
@enterprise_license_required
@with_current_user
@with_current_tenant_id
- @rbac_permission_required(RBACCheck(RBACPermission.APP_VIEW_LAYOUT, PlainApp()))
@with_session(write=False)
@get_app_model(mode=None)
def get(self, session: Session, current_tenant_id: str, current_user: Account, app_model: App):
diff --git a/api/controllers/console/datasets/datasets.py b/api/controllers/console/datasets/datasets.py
index 2f39d249896..e06c85b0cd0 100644
--- a/api/controllers/console/datasets/datasets.py
+++ b/api/controllers/console/datasets/datasets.py
@@ -671,7 +671,6 @@ class DatasetApi(Resource):
@setup_required
@login_required
@account_initialization_required
- @rbac_permission_required(RBACCheck(RBACPermission.DATASET_READONLY, DatasetId()))
@with_current_user
@with_current_tenant_id
@with_session(write=False)