quantranhong1999 commented on code in PR #3051:
URL: https://github.com/apache/james-project/pull/3051#discussion_r3309411235
##########
server/protocols/jmap-rfc-8621/src/main/scala/org/apache/james/jmap/routes/DownloadRoutes.scala:
##########
@@ -244,6 +278,13 @@ class MessagePartBlobResolver @Inject()(val
messageIdFactory: MessageId.Factory,
.switchIfEmpty(SMono.just(NonApplicable))
}
}
+
+ override def validateAccess(blobId: BlobId, mailboxSession: MailboxSession):
SMono[java.lang.Boolean] =
+ resolve(blobId, mailboxSession)
Review Comment:
> Another approach is to validate access rights with the base message only
and do not care about mime-path in the access check
Adapted.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]