diff --git a/hosting/templates/hosting/virtual_machines.html b/hosting/templates/hosting/virtual_machines.html index bb99c5e1..2387f89d 100644 --- a/hosting/templates/hosting/virtual_machines.html +++ b/hosting/templates/hosting/virtual_machines.html @@ -4,7 +4,7 @@
-
+

{% trans "Virtual Machines"%}

diff --git a/hosting/views.py b/hosting/views.py index b1f993ee..45e1291d 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -683,9 +683,10 @@ class VirtualMachineView(LoginRequiredMixin, View): return HttpResponseRedirect(self.get_success_url()) -class HostingBillListView(LoginRequiredMixin, ListView): +class HostingBillListView(PermissionRequiredMixin, LoginRequiredMixin, ListView): template_name = "hosting/bills.html" login_url = reverse_lazy('hosting:login') + permission_required = ['view_hostingview'] context_object_name = "users" model = StripeCustomer paginate_by = 10