diff --git a/tailbone/views/master.py b/tailbone/views/master.py index 6d6ff383..0cca7310 100644 --- a/tailbone/views/master.py +++ b/tailbone/views/master.py @@ -166,6 +166,9 @@ class MasterView(View): """ View for deleting an existing model record. """ + if not self.deletable: + raise httpexceptions.HTTPForbidden() + self.deleting = True instance = self.get_instance() instance_title = self.get_instance_title(instance)