Commit 794733a1 by Kálmán Viktor

dashboard: acl for trait and raw_data update view

parent a118c3e8
...@@ -505,7 +505,7 @@ class VmDetailView(CheckedDetailView): ...@@ -505,7 +505,7 @@ class VmDetailView(CheckedDetailView):
return redirect("%s#activity" % self.object.get_absolute_url()) return redirect("%s#activity" % self.object.get_absolute_url())
class VmTraitsUpdate(UpdateView): class VmTraitsUpdate(SuperuserRequiredMixin, UpdateView):
form_class = TraitsForm form_class = TraitsForm
model = Instance model = Instance
...@@ -513,7 +513,7 @@ class VmTraitsUpdate(UpdateView): ...@@ -513,7 +513,7 @@ class VmTraitsUpdate(UpdateView):
return self.get_object().get_absolute_url() + "#resources" return self.get_object().get_absolute_url() + "#resources"
class VmRawDataUpdate(UpdateView): class VmRawDataUpdate(SuperuserRequiredMixin, UpdateView):
form_class = RawDataForm form_class = RawDataForm
model = Instance model = Instance
......
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