Skip to content

Commit f8e5645

Browse files
committed
feat: support system variable
1 parent a1c90cf commit f8e5645

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

backend/apps/datasource/crud/row_permission.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ def transTreeItem(session: SessionDep, current_user: CurrentUser, item: Dict, ds
6969
variable_id = item.get('variable_id')
7070
if variable_id is not None:
7171
sys_variable = session.query(SystemVariable).filter(SystemVariable.id == variable_id).first()
72+
if sys_variable is None:
73+
return None
74+
7275
# do inner system variable
7376
if sys_variable.type == 'system':
7477
res = whereName + whereTerm + getSysVariableValue(sys_variable, current_user)

0 commit comments

Comments
 (0)