Skip to content

Commit

Permalink
Add GET_WORKSHEET permission in RUN_SQL_QUERY
Browse files Browse the repository at this point in the history
  • Loading branch information
dlpzx committed Nov 22, 2024
1 parent 10f278c commit 609a496
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def delete_worksheet(uri) -> bool:
def run_sql_query(uri, worksheetUri, sqlQuery):
with get_context().db_engine.scoped_session() as session:
environment = EnvironmentService.get_environment_by_uri(session, uri)
worksheet = WorksheetService._get_worksheet_by_uri(session, worksheetUri)
worksheet = WorksheetService.get_worksheet(uri=worksheetUri)

env_group = EnvironmentService.get_environment_group(
session, worksheet.SamlAdminGroupName, environment.environmentUri
Expand Down

0 comments on commit 609a496

Please sign in to comment.