MCPcopy Create free account
hub / github.com/dataease/SQLBot / userHaveVariable

Function userHaveVariable

backend/apps/datasource/crud/row_permission.py:212–216  ·  view source on GitHub ↗
(user_variables: List, sys_variable: SystemVariable)

Source from the content-addressed store, hash-verified

210
211
212def userHaveVariable(user_variables: List, sys_variable: SystemVariable):
213 for u in user_variables:
214 if sys_variable.id == u.get('variableId'):
215 return True
216 return False
217
218
219def getSysVariableValue(sys_variable: SystemVariable, current_user: CurrentUser, ds: CoreDatasource, field: CoreField,

Callers 1

transTreeItemFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected