refactor: Remove redundant code comments

This commit is contained in:
zhanweizhang7
2025-08-07 14:09:15 +08:00
committed by xuwei-fit2cloud
parent 7dbc9bc073
commit d6722196ee
@@ -28,11 +28,6 @@ def get_row_permission_filters(session: SessionDep, current_user: CurrentUser, d
if row_permissions is not None:
for permission in row_permissions:
# check permission and user in same rules
# obj = session.query(DsRules).filter(
# and_(DsRules.permission_list.op('@>')(cast([permission.id], JSONB)),
# or_(DsRules.user_list.op('@>')(cast([f'{current_user.id}'], JSONB)),
# DsRules.user_list.op('@>')(cast([current_user.id], JSONB))))
# ).first()
flag = False
for r in contain_rules:
p_list = json.loads(r.permission_list)