Skip to content

Commit

Permalink
Check ownership before a slice is deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
x4base committed Jun 15, 2016
1 parent e29d71d commit da30b28
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 @@ -469,6 +469,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 da30b28

Please sign in to comment.