Skip to content

Commit

Permalink
Dashboards can only be deleted by their owners (#701)
Browse files Browse the repository at this point in the history
  • Loading branch information
x4base authored and mistercrunch committed Jul 1, 2016
1 parent ee00aa6 commit 1a952a4
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 @@ -625,6 +625,9 @@ def pre_update(self, obj):
check_ownership(obj)
self.pre_add(obj)

def pre_delete(self, obj):
check_ownership(obj)


appbuilder.add_view(
DashboardModelView,
Expand Down

0 comments on commit 1a952a4

Please sign in to comment.