mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
Dashboards can only be deleted by their owners (#701)
This commit is contained in:
parent
ee00aa6522
commit
1a952a4961
@ -625,6 +625,9 @@ class DashboardModelView(CaravelModelView, DeleteMixin): # noqa
|
||||
check_ownership(obj)
|
||||
self.pre_add(obj)
|
||||
|
||||
def pre_delete(self, obj):
|
||||
check_ownership(obj)
|
||||
|
||||
|
||||
appbuilder.add_view(
|
||||
DashboardModelView,
|
||||
|
Loading…
Reference in New Issue
Block a user