1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-12-13 18:06:01 +00:00

[Web] add error handling for get_acl call

This commit is contained in:
FreddleSpl0it
2024-08-28 10:48:44 +02:00
parent 822d9a7de6
commit d21c1bfa72

View File

@@ -3248,6 +3248,7 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
} }
// get imap acls // get imap acls
try {
$exec_fields = array( $exec_fields = array(
'cmd' => 'doveadm', 'cmd' => 'doveadm',
'task' => 'get_acl', 'task' => 'get_acl',
@@ -3265,6 +3266,14 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
); );
docker('post', 'dovecot-mailcow', 'exec', $exec_fields); docker('post', 'dovecot-mailcow', 'exec', $exec_fields);
} }
} catch (Exception $e) {
$_SESSION['return'][] = array(
'type' => 'danger',
'log' => array(__FUNCTION__, $_action, $_type, $_data_log, $_attr),
'msg' => $e->getMessage()
);
return false;
}
// rename username in sql // rename username in sql
try { try {