mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-13 06:43:06 +00:00
createCalendarFeedLinkRecord failed with `overrideAccess:false` + `user: campaignUser` because Payload stripped the required `secretSlug`/`createdBy` fields (create access was admin-only) -> 400 behind the generic message; revokeCalendarFeedRecord silently no-opped (revokedAt update access also admin-only). - canCreateCalendarFeed now enforces advisor filterMunicipality scope on data (canCreateSupporter precedent) + canSetCalendarFeedSecret / canSetCalendarFeedRevocation permit staff to mint the secret on create and mark a feed revoked; secret read stays `() => false` and update admin-only. - CalendarFeed stamps createdBy via stampCampaignCreatedBy; secret create + revokedAt update use the new staff field accesses. - Action refactored to `*Record` (payload, actor) cores + thin wrappers; assertFilterMunicipalityInScope (tour precedent); console.error keeps the real error on the server while the friendly message stays. - 10 int tests for create/scope/revoke/leader/secret; fixture tracks calendarFeed cleanup. Closes #436 |
||
|---|---|---|
| .. | ||
| Activity.ts | ||
| AllocationDecision.ts | ||
| CalendarFeed.ts | ||
| CampaignDemand.ts | ||
| CampaignInvite.ts | ||
| CampaignUser.ts | ||
| CampaignVoteSummarySnapshot.ts | ||
| CampaignWebAuthnCredential.ts | ||
| Consent.ts | ||
| Contact.ts | ||
| ElectionCandidate.ts | ||
| ElectionCandidateVote.ts | ||
| ElectionTally.ts | ||
| Leadership.ts | ||
| Media.ts | ||
| Municipality.ts | ||
| MunicipalityUpdate.ts | ||
| Notification.ts | ||
| Organization.ts | ||
| Petition.ts | ||
| Post.ts | ||
| PushSubscription.ts | ||
| Signature.ts | ||
| StateDeputy.ts | ||
| Subscription.ts | ||
| Supporter.ts | ||
| SupporterImportBatch.ts | ||
| Tag.ts | ||
| Users.ts | ||
| VotePledge.ts | ||