Phase 14, part 4: what happens when it lapses
An hourly platform job: a trial over without a subscription goes to Free; past due, the owner is told and every page has a banner; at 14 days read-only; at 53 days everyone is warned; at 60 days the team is deleted with 30 days to undo. Each email once. Undoing a deletion for not paying gives a week more. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -228,6 +228,7 @@ func (s *Server) teamUndelete(w http.ResponseWriter, r *http.Request) {
|
||||
s.serverError(w, err)
|
||||
return
|
||||
}
|
||||
s.lapseUndone(t.ID, time.Now())
|
||||
ts, err := s.forTeam(t.ID)
|
||||
if err == nil {
|
||||
ts.record(audit.Entry{UserID: v.User.ID, UserName: displayName(v.User), Action: "team-undeleted", Target: t.Name, IP: clientIP(r)})
|
||||
|
||||
Reference in New Issue
Block a user