mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-10 15:26:13 +01:00
securify fix: CP-29: Manage Website – SMTP Hosts – Verify
This commit is contained in:
@@ -43,6 +43,16 @@ class ACLManager:
|
||||
'"dkimManager": 1, "createFTPAccount": 1, "deleteFTPAccount": 1, "listFTPAccounts": 1, "createBackup": 1,' \
|
||||
' "restoreBackup": 0, "addDeleteDestinations": 0, "scheduleBackups": 0, "remoteBackups": 0, "googleDriveBackups": 1, "manageSSL": 1, ' \
|
||||
'"hostnameSSL": 0, "mailServerSSL": 0 }'
|
||||
|
||||
@staticmethod
|
||||
def VerifySMTPHost(currentACL, owner, user):
|
||||
if currentACL['admin'] == 1:
|
||||
return 1
|
||||
elif owner == user:
|
||||
return 1
|
||||
else:
|
||||
return 0
|
||||
|
||||
@staticmethod
|
||||
def FindIfChild():
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user