From bcc32174b21f8a0cfa3ece40a97a3189a21a84db Mon Sep 17 00:00:00 2001 From: Levi Date: Sat, 13 May 2017 20:19:09 -0500 Subject: [PATCH] added permissions to hosting bill view --- hosting/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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