mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 22:06:05 +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:
|
||||
currentFile = items.split(' ')
|
||||
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
|
||||
|
||||
if len(currentFile) > 9:
|
||||
|
||||
@@ -23,6 +23,9 @@ class ChildDomainManager:
|
||||
checker = 0
|
||||
|
||||
for items in childDomains:
|
||||
if items.domain == f'mail.{master.domain}':
|
||||
pass
|
||||
else:
|
||||
dic = {
|
||||
'childDomain': items.domain,
|
||||
'path': items.path,
|
||||
|
||||
@@ -2382,6 +2382,9 @@ class WebsiteManager:
|
||||
|
||||
for web in websites:
|
||||
for child in web.childdomains_set.all():
|
||||
if child.domain == f'mail.{web.domain}':
|
||||
pass
|
||||
else:
|
||||
childDomains.append(child)
|
||||
|
||||
pagination = self.getPagination(len(childDomains), recordsToShow)
|
||||
|
||||
Reference in New Issue
Block a user