1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2026-05-27 09:51:52 +00:00

[Web] Sync User enabled/disabled status from IDP

This commit is contained in:
FreddleSpl0it
2026-02-24 13:25:47 +01:00
parent 404e2f0190
commit 06f308a934
7 changed files with 140 additions and 28 deletions
+5
View File
@@ -3691,6 +3691,11 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
}
}
// Override active status if explicitly provided (IDP sync takes priority over template)
if (isset($_data['active'])) {
$mailbox_attributes['active'] = $_data['active'];
}
$mailbox_attributes['quota'] = intval($mailbox_attributes['quota'] / 1048576);
$result = mailbox('edit', 'mailbox', $mailbox_attributes);
if ($result === false) return $result;