mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 06:16:08 +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.two = response.data.two;
|
||||||
$scope.three = response.data.three;
|
$scope.three = response.data.three;
|
||||||
|
|
||||||
document.getElementById("load1").innerHTML = $scope.one;
|
//document.getElementById("load1").innerHTML = $scope.one;
|
||||||
document.getElementById("load2").innerHTML = $scope.two;
|
//document.getElementById("load2").innerHTML = $scope.two;
|
||||||
document.getElementById("load3").innerHTML = $scope.three;
|
//document.getElementById("load3").innerHTML = $scope.three;
|
||||||
}
|
}
|
||||||
|
|
||||||
function cantGetLoadAvgData(response) {
|
function cantGetLoadAvgData(response) {
|
||||||
|
|||||||
@@ -104,12 +104,27 @@ def controller(request):
|
|||||||
admin = Administrator.objects.get(pk=userID)
|
admin = Administrator.objects.get(pk=userID)
|
||||||
currentACL = ACLManager.loadedACL(userID)
|
currentACL = ACLManager.loadedACL(userID)
|
||||||
|
|
||||||
|
if domainName == '':
|
||||||
|
if currentACL['admin'] == 1:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
return ACLManager.loadErrorJson('FilemanagerAdmin', 0)
|
||||||
|
else:
|
||||||
if ACLManager.checkOwnership(domainName, admin, currentACL) == 1:
|
if ACLManager.checkOwnership(domainName, admin, currentACL) == 1:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
return ACLManager.loadErrorJson()
|
return ACLManager.loadErrorJson()
|
||||||
except:
|
except:
|
||||||
print("habbi")
|
method = data['method']
|
||||||
|
userID = request.session['userID']
|
||||||
|
currentACL = ACLManager.loadedACL(userID)
|
||||||
|
|
||||||
|
if currentACL['admin'] == 1:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
return ACLManager.loadErrorJson('FilemanagerAdmin', 0)
|
||||||
|
|
||||||
|
|
||||||
fm = FM(request, data)
|
fm = FM(request, data)
|
||||||
|
|
||||||
if method == 'listForTable':
|
if method == 'listForTable':
|
||||||
|
|||||||
Reference in New Issue
Block a user