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:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user