mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-05-09 18:25:36 +02:00
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:
@@ -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>
|
||||
|
||||
@@ -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'),
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user