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"