bug fix: login on vm and fm

This commit is contained in:
usmannasir
2024-02-25 12:29:26 +05:00
parent 586425d12d
commit f3d5cc8a2b
2 changed files with 2 additions and 27 deletions

View File

@@ -151,13 +151,6 @@ def getLoadAverage(request):
def versionManagment(request):
## Get latest version
val = request.session['userID']
currentACL = ACLManager.loadedACL(val)
if currentACL['admin'] == 1:
pass
else:
return ACLManager.loadErrorJson('FilemanagerAdmin', 0)
getVersion = requests.get('https://cyberpanel.net/version.txt')
latest = getVersion.json()
latestVersion = latest['version']
@@ -179,14 +172,6 @@ def versionManagment(request):
Currentcomt = output.rstrip("\n")
notechk = True
# command ="git fetch -C /usr/local/CyberCP/"
# output = ProcessUtilities.outputExecutioner(command)
#
# command ="git -C /usr/local/CyberCP/ log %s..%s --pretty=oneline | wc -l" % ( Currentcomt, latestcomit)
# output = ProcessUtilities.outputExecutioner(command)
#
# numCommits = output.rstrip("\n")
if (Currentcomt == latestcomit):
notechk = False