mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 13:56:01 +01:00
bug fixes
This commit is contained in:
@@ -1088,7 +1088,7 @@ app.controller('googleDrive', function ($scope, $http) {
|
||||
$scope.driveHidden = true;
|
||||
|
||||
$scope.setupAccount = function(){
|
||||
window.open("https://cloud.cyberpanel.net/gDrive?name=" + $scope.accountName + '&server=' + window.location.href + 'Setup');
|
||||
window.open("https://platform.cyberpersons.com/gDrive?name=" + $scope.accountName + '&server=' + window.location.href + 'Setup');
|
||||
};
|
||||
|
||||
$scope.currentPage = 1;
|
||||
|
||||
@@ -228,7 +228,6 @@ def FileManagerRoot(request):
|
||||
except BaseException as msg:
|
||||
template = 'baseTemplate/FileManager.html'
|
||||
|
||||
|
||||
if currentACL['admin'] == 1:
|
||||
pass
|
||||
else:
|
||||
|
||||
@@ -254,7 +254,7 @@ class IncScheduler(multi.Thread):
|
||||
try:
|
||||
|
||||
finalData = json.dumps({'refresh_token': gDriveData['refresh_token']})
|
||||
r = requests.post("https://cloud.cyberpanel.net/refreshToken", data=finalData
|
||||
r = requests.post("https://platform.cyberpersons.com/refreshToken", data=finalData
|
||||
)
|
||||
gDriveData['token'] = json.loads(r.text)['access_token']
|
||||
|
||||
@@ -350,7 +350,7 @@ class IncScheduler(multi.Thread):
|
||||
drive.files().create(body=file_metadata, media_body=media, fields='id').execute()
|
||||
except:
|
||||
finalData = json.dumps({'refresh_token': gDriveData['refresh_token']})
|
||||
r = requests.post("https://cloud.cyberpanel.net/refreshToken", data=finalData
|
||||
r = requests.post("https://platform.cyberpersons.com/refreshToken", data=finalData
|
||||
)
|
||||
gDriveData['token'] = json.loads(r.text)['access_token']
|
||||
|
||||
|
||||
@@ -1082,7 +1082,7 @@ app.controller('googleDrive', function ($scope, $http) {
|
||||
$scope.driveHidden = true;
|
||||
|
||||
$scope.setupAccount = function(){
|
||||
window.open("https://cloud.cyberpanel.net/gDrive?name=" + $scope.accountName + '&server=' + window.location.href + 'Setup');
|
||||
window.open("https://platform.cyberpersons.com/gDrive?name=" + $scope.accountName + '&server=' + window.location.href + 'Setup');
|
||||
};
|
||||
|
||||
$scope.currentPage = 1;
|
||||
|
||||
Reference in New Issue
Block a user