added permissions to hosting bill view

This commit is contained in:
Levi 2017-05-13 20:19:09 -05:00
parent d5749f65f1
commit bcc32174b2

View file

@ -683,9 +683,10 @@ class VirtualMachineView(LoginRequiredMixin, View):
return HttpResponseRedirect(self.get_success_url()) return HttpResponseRedirect(self.get_success_url())
class HostingBillListView(LoginRequiredMixin, ListView): class HostingBillListView(PermissionRequiredMixin, LoginRequiredMixin, ListView):
template_name = "hosting/bills.html" template_name = "hosting/bills.html"
login_url = reverse_lazy('hosting:login') login_url = reverse_lazy('hosting:login')
permission_required = ['view_hostingview']
context_object_name = "users" context_object_name = "users"
model = StripeCustomer model = StripeCustomer
paginate_by = 10 paginate_by = 10