Skip to content
Permalink
Browse files
bug fix: suspend user
  • Loading branch information
usmannasir committed Feb 7, 2020
1 parent c9dc4f0 commit f9eda7bc498dec0caf9475fe9ff0d948f41a20d1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
@@ -13,11 +13,9 @@
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 @@ def run(self):

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

0 comments on commit f9eda7b

Please sign in to comment.