Commit fe84d9e6 by Bach Dániel

dashboard: fix VmResourcesChangeView

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