Remove Fix Subdomain Logs page; fix view to pass request for ACL

- Remove Fix Subdomain Logs menu item from sidebar
- Remove fixSubdomainLogs and fixSubdomainLogsAction URL routes
- Views: pass request to WebsiteManager (fixSubdomainLogs/ fixSubdomainLogsAction) for correct ACL check
This commit is contained in:
master3395
2026-02-16 14:00:52 +01:00
parent 5ae519bef8
commit 06e8a1bd13
3 changed files with 4 additions and 23 deletions

View File

@@ -1589,9 +1589,6 @@
<a href="{% url 'listChildDomains' %}" class="menu-item">
<span>List Sub/Addon Domains</span>
</a>
<a href="{% url 'fixSubdomainLogs' %}" class="menu-item">
<span>Fix Subdomain Logs</span>
</a>
{% if admin or modifyWebsite %}
<a href="{% url 'modifyWebsite' %}" class="menu-item">
<span>Modify Website</span>

View File

@@ -203,10 +203,6 @@ urlpatterns = [
path('get_website_resources/', views.get_website_resources, name='get_website_resources'),
# Subdomain Log Fix
path('fixSubdomainLogs', views.fixSubdomainLogs, name='fixSubdomainLogs'),
path('fixSubdomainLogsAction', views.fixSubdomainLogsAction, name='fixSubdomainLogsAction'),
# FTP Quota Management (API endpoints only; page is at /ftp/quotaManagement)
path('getFTPQuotaStatus', views.getFTPQuotaStatus, name='getFTPQuotaStatus'),
path('enableFTPQuota', views.enableFTPQuota, name='enableFTPQuota'),

View File

@@ -2209,29 +2209,17 @@ def fetchWPBackups(request):
def fixSubdomainLogs(request):
try:
userID = request.session['userID']
request.session['userID']
wm = WebsiteManager()
coreResult = wm.fixSubdomainLogs(userID)
return coreResult
return wm.fixSubdomainLogs(request)
except KeyError:
return redirect(loadLoginPage)
def fixSubdomainLogsAction(request):
try:
userID = request.session['userID']
request.session['userID']
wm = WebsiteManager()
coreResult = wm.fixSubdomainLogsAction(userID)
return coreResult
return wm.fixSubdomainLogsAction(request)
except KeyError:
return redirect(loadLoginPage)