Skip to content

Commit 9831ca2

Browse files
committed
bug fix: reseller to modify dns zone
1 parent 659acf2 commit 9831ca2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

plogical/acl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ def checkOwnership(domain, admin, currentACL):
526526

527527
@staticmethod
528528
def checkOwnershipZone(domain, admin, currentACL):
529-
domain = Domains.objects.get(name=domain)
529+
domain = Websites.objects.get(domain=domain)
530530

531531
if currentACL['admin'] == 1:
532532
return 1

plogical/upgrade.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1480,7 +1480,7 @@ def downloadAndUpgrade(versionNumbring, branch):
14801480
pass
14811481

14821482
@staticmethod
1483-
def installLSCPD():
1483+
def installLSCPD(branch):
14841484
try:
14851485

14861486
Upgrade.stdOut("Starting LSCPD installation..")
@@ -1499,7 +1499,7 @@ def installLSCPD():
14991499
if os.path.exists(lscpdPath):
15001500
os.remove(lscpdPath)
15011501

1502-
command = 'wget https://raw.githubusercontent.com/usmannasir/cyberpanel/v1.9.4/lscpd-0.2.4 -P /usr/local/lscp/bin/'
1502+
command = 'wget https://raw.githubusercontent.com/usmannasir/cyberpanel/%s/lscpd-0.2.4 -P /usr/local/lscp/bin/' % (branch)
15031503
Upgrade.executioner(command, command, 0)
15041504

15051505
command = 'rm -f /usr/local/lscp/bin/lscpd'
@@ -2169,7 +2169,7 @@ def upgrade(branch):
21692169
Upgrade.installPHP73()
21702170
Upgrade.setupCLI()
21712171
Upgrade.someDirectories()
2172-
Upgrade.installLSCPD()
2172+
Upgrade.installLSCPD(branch)
21732173
Upgrade.GeneralMigrations()
21742174
#Upgrade.p3()
21752175

0 commit comments

Comments
 (0)