feat(invitations): check contact grants on every read, cap pending invitations, and expire them at the deadline
This commit is contained in:
1 parent
676b3c6e24
commit
12a7213d4a
67 files changed
+4255
-149
No files matched your search
@@ -14035,8 +14035,8 @@ func (s *Server) handleSearchOrganizationMatchesRequest(args [1]string, argsEsca
|
||||
// answer per need (`delivered`, `viewed`, `counter`) and the 30-day pause for the pair of the
|
||||
// organization and the candidate after a decline or a no deal, regardless of the member or the need,
|
||||
// both with 409 state_conflict; and the rolling weekly quota of the organization, with 429 and
|
||||
// Retry-After. The organization quota is enforced; the pending limit and the pause are planned and are
|
||||
// not checked yet.
|
||||
// Retry-After. The organization quota, the pending limit, and the pause after a decline are enforced;
|
||||
// the pause after a no deal is planned, because no operation produces the state `no_deal` yet.
|
||||
//
|
||||
// Repeats return the same result: a retry with the same Idempotency-Key replays the stored response,
|
||||
// and a send of an invitation that was already sent answers 200 with the invitation in its current
|
||||
|
||||
@@ -1725,8 +1725,8 @@ type Handler interface {
|
||||
// answer per need (`delivered`, `viewed`, `counter`) and the 30-day pause for the pair of the
|
||||
// organization and the candidate after a decline or a no deal, regardless of the member or the need,
|
||||
// both with 409 state_conflict; and the rolling weekly quota of the organization, with 429 and
|
||||
// Retry-After. The organization quota is enforced; the pending limit and the pause are planned and are
|
||||
// not checked yet.
|
||||
// Retry-After. The organization quota, the pending limit, and the pause after a decline are enforced;
|
||||
// the pause after a no deal is planned, because no operation produces the state `no_deal` yet.
|
||||
//
|
||||
// Repeats return the same result: a retry with the same Idempotency-Key replays the stored response,
|
||||
// and a send of an invitation that was already sent answers 200 with the invitation in its current
|
||||
|
||||
@@ -1916,8 +1916,8 @@ func (UnimplementedHandler) SearchOrganizationMatches(ctx context.Context, req M
|
||||
// answer per need (`delivered`, `viewed`, `counter`) and the 30-day pause for the pair of the
|
||||
// organization and the candidate after a decline or a no deal, regardless of the member or the need,
|
||||
// both with 409 state_conflict; and the rolling weekly quota of the organization, with 429 and
|
||||
// Retry-After. The organization quota is enforced; the pending limit and the pause are planned and are
|
||||
// not checked yet.
|
||||
// Retry-After. The organization quota, the pending limit, and the pause after a decline are enforced;
|
||||
// the pause after a no deal is planned, because no operation produces the state `no_deal` yet.
|
||||
//
|
||||
// Repeats return the same result: a retry with the same Idempotency-Key replays the stored response,
|
||||
// and a send of an invitation that was already sent answers 200 with the invitation in its current
|
||||
|
||||
Reference in new issue
Block a user