mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-09-02 03:16:18 +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:
@@ -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