mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 06:16:08 +01:00
bug fix mail creation ref https://github.com/usmannasir/cyberpanel/issues/1059
This commit is contained in:
@@ -209,7 +209,8 @@ class FileManager:
|
|||||||
try:
|
try:
|
||||||
currentFile = items.split(' ')
|
currentFile = items.split(' ')
|
||||||
currentFile = [a for a in currentFile if a != '']
|
currentFile = [a for a in currentFile if a != '']
|
||||||
if currentFile[-1] == '.' or currentFile[-1] == '..' or currentFile[0] == 'total':
|
|
||||||
|
if currentFile[-1] == '.' or currentFile[-1] == '..' or currentFile[0] == 'total' or currentFile[-1].startswith('mail.'):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if len(currentFile) > 9:
|
if len(currentFile) > 9:
|
||||||
|
|||||||
@@ -23,6 +23,9 @@ class ChildDomainManager:
|
|||||||
checker = 0
|
checker = 0
|
||||||
|
|
||||||
for items in childDomains:
|
for items in childDomains:
|
||||||
|
if items.domain == f'mail.{master.domain}':
|
||||||
|
pass
|
||||||
|
else:
|
||||||
dic = {
|
dic = {
|
||||||
'childDomain': items.domain,
|
'childDomain': items.domain,
|
||||||
'path': items.path,
|
'path': items.path,
|
||||||
|
|||||||
@@ -2382,6 +2382,9 @@ class WebsiteManager:
|
|||||||
|
|
||||||
for web in websites:
|
for web in websites:
|
||||||
for child in web.childdomains_set.all():
|
for child in web.childdomains_set.all():
|
||||||
|
if child.domain == f'mail.{web.domain}':
|
||||||
|
pass
|
||||||
|
else:
|
||||||
childDomains.append(child)
|
childDomains.append(child)
|
||||||
|
|
||||||
pagination = self.getPagination(len(childDomains), recordsToShow)
|
pagination = self.getPagination(len(childDomains), recordsToShow)
|
||||||
|
|||||||
Reference in New Issue
Block a user