mirror of https://github.com/apache/superset.git
Check ownership before a slice is deleted (#624)
This commit is contained in:
parent
77c5c9400a
commit
65d9feb0a9
|
@ -477,6 +477,9 @@ class SliceModelView(CaravelModelView, DeleteMixin): # noqa
|
|||
def pre_update(self, obj):
|
||||
check_ownership(obj)
|
||||
|
||||
def pre_delete(self, obj):
|
||||
check_ownership(obj)
|
||||
|
||||
appbuilder.add_view(
|
||||
SliceModelView,
|
||||
"Slices",
|
||||
|
|
Loading…
Reference in New Issue