mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
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):
|
def pre_update(self, obj):
|
||||||
check_ownership(obj)
|
check_ownership(obj)
|
||||||
|
|
||||||
|
def pre_delete(self, obj):
|
||||||
|
check_ownership(obj)
|
||||||
|
|
||||||
appbuilder.add_view(
|
appbuilder.add_view(
|
||||||
SliceModelView,
|
SliceModelView,
|
||||||
"Slices",
|
"Slices",
|
||||||
|
Loading…
Reference in New Issue
Block a user