Skip to content

Commit

Permalink
partially protect the old MVC also
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgaspar committed Jan 13, 2021
1 parent 0ae16bf commit e949170
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions superset/connectors/sqla/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
from superset.typing import FlaskResponse
from superset.utils import core as utils
from superset.views.base import (
check_ownership,
create_table_permissions,
DatasourceFilter,
DeleteMixin,
Expand Down Expand Up @@ -459,6 +460,9 @@ class TableModelView( # pylint: disable=too-many-ancestors
def pre_add(self, item: "TableModelView") -> None:
validate_sqlatable(item)

def pre_update(self, item: "TableModelView") -> None:
check_ownership(item)

def post_add( # pylint: disable=arguments-differ
self,
item: "TableModelView",
Expand Down

0 comments on commit e949170

Please sign in to comment.