protocols/imap/src/main/java/org/apache/james/imap/processor/DeleteACLProcessor.java [101:114]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private Mono<Boolean> checkAdminRight(DeleteACLRequest request, Responder responder, MailboxManager mailboxManager, MailboxSession mailboxSession, String mailboxName, MailboxPath mailboxPath) {
        return Mono.from(mailboxManager.hasRightReactive(mailboxPath, MailboxACL.Right.Administer, mailboxSession))
            .doOnNext(hasRight -> {
                if (!hasRight) {
                    no(request, responder,
                        new HumanReadableText(
                            HumanReadableText.UNSUFFICIENT_RIGHTS_KEY,
                            HumanReadableText.UNSUFFICIENT_RIGHTS_DEFAULT_VALUE,
                            MailboxACL.Right.Administer.toString(),
                            request.getCommand().getName(),
                            mailboxName));
                }
            });
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



protocols/imap/src/main/java/org/apache/james/imap/processor/SetACLProcessor.java [134:147]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private Mono<Boolean> checkAdminRight(SetACLRequest request, Responder responder, MailboxManager mailboxManager, MailboxSession mailboxSession, String mailboxName, MailboxPath mailboxPath) {
        return Mono.from(mailboxManager.hasRightReactive(mailboxPath, MailboxACL.Right.Administer, mailboxSession))
            .doOnNext(hasRight -> {
                if (!hasRight) {
                    no(request, responder,
                        new HumanReadableText(
                            HumanReadableText.UNSUFFICIENT_RIGHTS_KEY,
                            HumanReadableText.UNSUFFICIENT_RIGHTS_DEFAULT_VALUE,
                            MailboxACL.Right.Administer.toString(),
                            request.getCommand().getName(),
                            mailboxName));
                }
            });
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



