Commit fe84d9e6 by Bach Dániel

dashboard: fix VmResourcesChangeView

parent fda830b4
......@@ -336,6 +336,8 @@ class VmDetailView(CheckedDetailView):
if request.POST.get(k) is not None:
return v(request)
raise Http404()
def __change_password(self, request):
self.object = self.get_object()
if not self.object.has_level(request.user, 'owner'):
......@@ -870,6 +872,7 @@ vm_ops = OrderedDict([
('create_disk', VmCreateDiskView),
('download_disk', VmDownloadDiskView),
('renew', VmRenewView),
('resources_change', VmResourcesChangeView),
])
......
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