Skip to content

Commit

Permalink
Check ownership before a slice is deleted (#624)
Browse files Browse the repository at this point in the history
  • Loading branch information
x4base authored and mistercrunch committed Jun 15, 2016
1 parent 77c5c94 commit 65d9feb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions caravel/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 65d9feb

Please sign in to comment.