Commit f876f926 by Bach Dániel

dashboard: remove unnecessary perm check

parent 67622b86
......@@ -245,8 +245,8 @@ class NodeDelete(SuperuserRequiredMixin, DeleteViewBase):
success_message = _("Node successfully deleted.")
def check_auth(self):
if not self.request.user.is_superuser:
raise PermissionDenied()
# SuperuserRequiredMixin
def get_success_url(self):
return reverse_lazy('dashboard.views.node-list')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment