mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 22:06:05 +01:00
bug fix: load main page data
This commit is contained in:
@@ -514,9 +514,9 @@ app.controller('homePageStatus', function ($scope, $http, $timeout) {
|
||||
$scope.two = response.data.two;
|
||||
$scope.three = response.data.three;
|
||||
|
||||
document.getElementById("load1").innerHTML = $scope.one;
|
||||
document.getElementById("load2").innerHTML = $scope.two;
|
||||
document.getElementById("load3").innerHTML = $scope.three;
|
||||
//document.getElementById("load1").innerHTML = $scope.one;
|
||||
//document.getElementById("load2").innerHTML = $scope.two;
|
||||
//document.getElementById("load3").innerHTML = $scope.three;
|
||||
}
|
||||
|
||||
function cantGetLoadAvgData(response) {
|
||||
|
||||
@@ -104,12 +104,27 @@ def controller(request):
|
||||
admin = Administrator.objects.get(pk=userID)
|
||||
currentACL = ACLManager.loadedACL(userID)
|
||||
|
||||
if ACLManager.checkOwnership(domainName, admin, currentACL) == 1:
|
||||
if domainName == '':
|
||||
if currentACL['admin'] == 1:
|
||||
pass
|
||||
else:
|
||||
return ACLManager.loadErrorJson('FilemanagerAdmin', 0)
|
||||
else:
|
||||
if ACLManager.checkOwnership(domainName, admin, currentACL) == 1:
|
||||
pass
|
||||
else:
|
||||
return ACLManager.loadErrorJson()
|
||||
except:
|
||||
method = data['method']
|
||||
userID = request.session['userID']
|
||||
currentACL = ACLManager.loadedACL(userID)
|
||||
|
||||
if currentACL['admin'] == 1:
|
||||
pass
|
||||
else:
|
||||
return ACLManager.loadErrorJson()
|
||||
except:
|
||||
print("habbi")
|
||||
return ACLManager.loadErrorJson('FilemanagerAdmin', 0)
|
||||
|
||||
|
||||
fm = FM(request, data)
|
||||
|
||||
if method == 'listForTable':
|
||||
|
||||
Reference in New Issue
Block a user