From 1a952a496102b28cf60d9b31d53ded28337e8971 Mon Sep 17 00:00:00 2001 From: x4base Date: Fri, 1 Jul 2016 16:33:07 -0500 Subject: [PATCH] Dashboards can only be deleted by their owners (#701) --- caravel/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/caravel/views.py b/caravel/views.py index fc20706dd504d..8004d27a5ee08 100755 --- a/caravel/views.py +++ b/caravel/views.py @@ -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,