From d1494af0a1f14565656b78aa7b1d5824f8887c3a Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Sat, 22 Jul 2023 22:25:08 +0200 Subject: [PATCH] Fix permission check on disk space detail view --- docs/changelog.rst | 2 ++ gnuviechadmin/hostingpackages/views.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 6305678..2e662e8 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,6 +1,8 @@ Changelog ========= +* :bug:`-` fix missing permission check on disk space detail view + * :release:`0.14.2 <2023-07-22>` * :bug:`-` fix division by zero for hosting packages without disk space allocation diff --git a/gnuviechadmin/hostingpackages/views.py b/gnuviechadmin/hostingpackages/views.py index f071445..941e978 100644 --- a/gnuviechadmin/hostingpackages/views.py +++ b/gnuviechadmin/hostingpackages/views.py @@ -321,7 +321,7 @@ class UploadCustomerPackageDiskUsage(APIView): return Response("Accepted", status=http.HTTPStatus.ACCEPTED) -class CustomerHostingPackageDiskUsageDetails(DetailView): +class CustomerHostingPackageDiskUsageDetails(StaffOrSelfLoginRequiredMixin, DetailView): template_name_suffix = "_disk_usage_details" model = CustomerHostingPackage pk_url_kwarg = "package"