From 9831ca2ac51efb752d91f764ede4c984903bc029 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Thu, 13 Feb 2020 16:16:02 +0500 Subject: [PATCH] bug fix: reseller to modify dns zone --- plogical/acl.py | 2 +- plogical/upgrade.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plogical/acl.py b/plogical/acl.py index 62edb5277..3d7c5e424 100755 --- a/plogical/acl.py +++ b/plogical/acl.py @@ -526,7 +526,7 @@ class ACLManager: @staticmethod def checkOwnershipZone(domain, admin, currentACL): - domain = Domains.objects.get(name=domain) + domain = Websites.objects.get(domain=domain) if currentACL['admin'] == 1: return 1 diff --git a/plogical/upgrade.py b/plogical/upgrade.py index 555d9ce8b..e5360ade7 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -1480,7 +1480,7 @@ CSRF_COOKIE_SECURE = True pass @staticmethod - def installLSCPD(): + def installLSCPD(branch): try: Upgrade.stdOut("Starting LSCPD installation..") @@ -1499,7 +1499,7 @@ CSRF_COOKIE_SECURE = True if os.path.exists(lscpdPath): os.remove(lscpdPath) - command = 'wget https://raw.githubusercontent.com/usmannasir/cyberpanel/v1.9.4/lscpd-0.2.4 -P /usr/local/lscp/bin/' + command = 'wget https://raw.githubusercontent.com/usmannasir/cyberpanel/%s/lscpd-0.2.4 -P /usr/local/lscp/bin/' % (branch) Upgrade.executioner(command, command, 0) command = 'rm -f /usr/local/lscp/bin/lscpd' @@ -2169,7 +2169,7 @@ vmail Upgrade.installPHP73() Upgrade.setupCLI() Upgrade.someDirectories() - Upgrade.installLSCPD() + Upgrade.installLSCPD(branch) Upgrade.GeneralMigrations() #Upgrade.p3()