mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 05:45:59 +01:00
filemanager0.1
This commit is contained in:
@@ -95,18 +95,21 @@ def downloadFile(request):
|
||||
def controller(request):
|
||||
try:
|
||||
data = json.loads(request.body)
|
||||
domainName = data['domainName']
|
||||
method = data['method']
|
||||
|
||||
userID = request.session['userID']
|
||||
admin = Administrator.objects.get(pk=userID)
|
||||
currentACL = ACLManager.loadedACL(userID)
|
||||
try:
|
||||
domainName = data['domainName']
|
||||
method = data['method']
|
||||
|
||||
if ACLManager.checkOwnership(domainName, admin, currentACL) == 1:
|
||||
pass
|
||||
else:
|
||||
return ACLManager.loadErrorJson()
|
||||
userID = request.session['userID']
|
||||
admin = Administrator.objects.get(pk=userID)
|
||||
currentACL = ACLManager.loadedACL(userID)
|
||||
|
||||
if ACLManager.checkOwnership(domainName, admin, currentACL) == 1:
|
||||
pass
|
||||
else:
|
||||
return ACLManager.loadErrorJson()
|
||||
except:
|
||||
print("habbi")
|
||||
fm = FM(request, data)
|
||||
|
||||
if method == 'listForTable':
|
||||
|
||||
Reference in New Issue
Block a user