mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-12 08:16:11 +01:00
bug fix: suspend user
This commit is contained in:
@@ -13,11 +13,9 @@ from loginSystem.models import Administrator
|
||||
import plogical.CyberCPLogFileWriter as logging
|
||||
from loginSystem.views import loadLoginPage
|
||||
from websiteFunctions.models import Websites
|
||||
from plogical.virtualHostUtilities import virtualHostUtilities
|
||||
from plogical.ftpUtilities import FTPUtilities
|
||||
import os
|
||||
from plogical.acl import ACLManager
|
||||
from plogical.processUtilities import ProcessUtilities
|
||||
|
||||
class FTPManager:
|
||||
def __init__(self, request):
|
||||
|
||||
@@ -28,7 +28,7 @@ class UserManager(multi.Thread):
|
||||
|
||||
def controlUserState(self):
|
||||
try:
|
||||
websites = ACLManager.findAllSites(self.extraArgs['currentACL'],self.extraArgs['user'])
|
||||
websites = ACLManager.findAllSites(self.extraArgs['currentACL'],self.extraArgs['user'].pk)
|
||||
from websiteFunctions.website import WebsiteManager
|
||||
|
||||
wm = WebsiteManager()
|
||||
|
||||
@@ -1053,7 +1053,7 @@ def controlUserState(request):
|
||||
|
||||
extraArgs = {}
|
||||
extraArgs['user'] = user
|
||||
extraArgs['currentACL'] = currentACL
|
||||
extraArgs['currentACL'] = ACLManager.loadedACL(user.pk)
|
||||
extraArgs['state'] = state
|
||||
|
||||
from userManagment.userManager import UserManager
|
||||
|
||||
Reference in New Issue
Block a user