Skip to content

Commit

Permalink
jmap_api.c: move a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ksmurchison authored and elliefm committed Apr 14, 2021
1 parent bb80034 commit 3f157eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions imap/jmap_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -3030,6 +3030,9 @@ static void add_shareacls(const char *userid, void *val, void *rock)

static int set_upload_rights(const char *accountid)
{
/* XXX This is currently done by brute force.
We could be smarter by only doing a full scan
iff r/w is removed for a userid. */
struct mailbox *mbox = NULL;
int r = jmap_open_upload_collection(accountid, &mbox);

Expand Down Expand Up @@ -3200,9 +3203,6 @@ HIDDEN int jmap_set_sharewith(struct mailbox *mbox,

if (!r) {
/* Set proper access rights on JMAP upload folder */
/* XXX This is currently done by brute force.
We could be smarter by only doing a full scan
iff r/w is removed for a userid */
r = set_upload_rights(owner);
}

Expand Down

0 comments on commit 3f157eb

Please sign in to comment.