Skip to content

Commit 7c946a6

Browse files
committed
IMAP: Wrong permission checked for GETACL
1 parent e01bbf0 commit 7c946a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/imap/src/op/acl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ use utils::map::bitmap::Bitmap;
4040
impl<T: SessionStream> Session<T> {
4141
pub async fn handle_get_acl(&mut self, request: Request<Command>) -> trc::Result<()> {
4242
// Validate access
43-
self.assert_has_permission(Permission::ImapAuthenticate)?;
43+
self.assert_has_permission(Permission::ImapAclGet)?;
4444

4545
let op_start = Instant::now();
4646
let arguments = request.parse_acl(self.is_utf8)?;

0 commit comments

Comments
 (0)