Skip to content

Commit 663fe60

Browse files
committed
fix(security): switch from deprecated get_session to session attribute
1 parent 0de78d8 commit 663fe60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

superset/security/manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ def has_drill_by_access(
623623
and form_data.get("slice_id") == 0
624624
and (chart_id := form_data.get("chart_id"))
625625
and (
626-
slc := self.get_session.query(Slice)
626+
slc := self.session.query(Slice)
627627
.filter(Slice.id == chart_id)
628628
.one_or_none()
629629
)
@@ -633,7 +633,7 @@ def has_drill_by_access(
633633
and (
634634
drillable_columns := {
635635
row[0]
636-
for row in self.get_session.query(TableColumn.column_name)
636+
for row in self.session.query(TableColumn.column_name)
637637
.filter(TableColumn.table_id == datasource.id)
638638
.filter(TableColumn.groupby)
639639
.all()

0 commit comments

Comments
 (0)