Skip to content

Commit d672219

Browse files
zhanweizhang7xuwei-fit2cloud
authored andcommitted
refactor: Remove redundant code comments
1 parent 7dbc9bc commit d672219

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

backend/apps/datasource/crud/permission.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ def get_row_permission_filters(session: SessionDep, current_user: CurrentUser, d
2828
if row_permissions is not None:
2929
for permission in row_permissions:
3030
# check permission and user in same rules
31-
# obj = session.query(DsRules).filter(
32-
# and_(DsRules.permission_list.op('@>')(cast([permission.id], JSONB)),
33-
# or_(DsRules.user_list.op('@>')(cast([f'{current_user.id}'], JSONB)),
34-
# DsRules.user_list.op('@>')(cast([current_user.id], JSONB))))
35-
# ).first()
3631
flag = False
3732
for r in contain_rules:
3833
p_list = json.loads(r.permission_list)

0 commit comments

Comments
 (0)