Skip to content

Commit

Permalink
bug fix: reseller to modify dns zone
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Feb 13, 2020
1 parent 659acf2 commit 9831ca2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plogical/acl.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ def checkOwnership(domain, admin, currentACL):

@staticmethod
def checkOwnershipZone(domain, admin, currentACL):
domain = Domains.objects.get(name=domain)
domain = Websites.objects.get(domain=domain)

if currentACL['admin'] == 1:
return 1
Expand Down
6 changes: 3 additions & 3 deletions plogical/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -1480,7 +1480,7 @@ def downloadAndUpgrade(versionNumbring, branch):
pass

@staticmethod
def installLSCPD():
def installLSCPD(branch):
try:

Upgrade.stdOut("Starting LSCPD installation..")
Expand All @@ -1499,7 +1499,7 @@ def installLSCPD():
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'
Expand Down Expand Up @@ -2169,7 +2169,7 @@ def upgrade(branch):
Upgrade.installPHP73()
Upgrade.setupCLI()
Upgrade.someDirectories()
Upgrade.installLSCPD()
Upgrade.installLSCPD(branch)
Upgrade.GeneralMigrations()
#Upgrade.p3()

Expand Down

0 comments on commit 9831ca2

Please sign in to comment.