Merge pull request #242 from levivm/opennebula_api
added permissions to hosting bill view
This commit is contained in:
commit
d031488514
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue