Skip to content

Commit

Permalink
jmap_api.c: apply implicit owner rights in JMAP API
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbs committed Jan 15, 2025
1 parent ad34908 commit b2bf7b6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions imap/jmap_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,11 @@ static struct mbstate *_mbstate_getoradd(struct auth_state *authstate,
mboxlist_entry_free(&parententry);
}
else mbstate->rights = httpd_myrights(authstate, mbentry);

if (auth_memberof(authstate, mbname_userid(mbname)) == 3) {
mbstate->rights |= config_implicitrights;
}

mbname_free(&mbname);

hash_insert(mbentry->name, mbstate, mbstates);
Expand Down

0 comments on commit b2bf7b6

Please sign in to comment.