mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 08:58:09 +08:00
Fix worng permission logic
This commit is contained in:
@ -339,7 +339,7 @@ class DatasetApi(Resource):
|
||||
dataset_id_str = str(dataset_id)
|
||||
|
||||
# The role of the current user in the ta table must be admin, owner, or editor
|
||||
if not current_user.is_editor or current_user.is_dataset_operator:
|
||||
if not (current_user.is_editor or current_user.is_dataset_operator):
|
||||
raise Forbidden()
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user