mirror of
https://github.com/stalwartlabs/mail-server.git
synced 2025-09-07 20:44:15 +08:00
IMAP: Include administer in ACL responses
This commit is contained in:
parent
e10aa551eb
commit
cae49be574
1 changed files with 7 additions and 0 deletions
|
@ -69,11 +69,17 @@ impl<T: SessionStream> Session<T> {
|
|||
Rights::CreateMailbox,
|
||||
Rights::DeleteMailbox,
|
||||
Rights::Post,
|
||||
Rights::Administer,
|
||||
],
|
||||
));
|
||||
}
|
||||
|
||||
for item in mailbox.inner.acls.iter() {
|
||||
if item.account_id == mailbox_id.account_id {
|
||||
// Skip the current user, as they are already added above
|
||||
continue;
|
||||
}
|
||||
|
||||
if let Some(account_name) = data
|
||||
.server
|
||||
.store()
|
||||
|
@ -207,6 +213,7 @@ impl<T: SessionStream> Session<T> {
|
|||
Rights::CreateMailbox,
|
||||
Rights::DeleteMailbox,
|
||||
Rights::Post,
|
||||
Rights::Administer,
|
||||
]
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue