linagora/james-project

check that mailboxes on which i have a p right are not listed in the ones i can see

Closed this issue · 0 comments

Why ?

in the context of sub addressing, users can now grant p right to no one or anyone to their mailboxes (CF this github issue).

What ?

it would be good to check that mailboxes on which i have a p right are not listed in the ones i can see:

GIVEN bob gives 'p' right to anyone
WHEN alice lists mailboxes
THEN alice does not see bob's mailbox
GIVEN bob gives 'p' right to alice
WHEN alice lists mailboxes
THEN alice does not see bob's mailbox

How ?

add tests in MailboxManagerTest