Phase 13, part 7: the platform's own admin
The people running the multi-tenant service (SUPERMARKET_PLATFORM_ADMINS, with two-factor sign-in) see every team at /platform with its size, people and what failed lately, and can suspend or restore a team, resend its invitations and release its domain. They don't see a team's data unless they view as it: with a reason, for at most an hour, read-only, recorded in the team's own audit log. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -331,6 +331,9 @@ func (s *Server) Handler() (http.Handler, error) {
|
||||
// Signing in (the server edition).
|
||||
mux.HandleFunc("GET /setup/{token}", (*Server).setupPage)
|
||||
mux.HandleFunc("POST /setup/{token}", (*Server).setupSave)
|
||||
mux.HandleFunc("GET /platform", (*Server).platformPage)
|
||||
mux.HandleFunc("POST /platform/stop-viewing", (*Server).platformStopViewing)
|
||||
mux.HandleFunc("POST /platform/teams/{id}/{action}", (*Server).platformAction)
|
||||
mux.HandleFunc("GET /signup", (*Server).signupPage)
|
||||
mux.HandleFunc("POST /signup", (*Server).signup)
|
||||
mux.HandleFunc("POST /teams/switch", (*Server).teamSwitch)
|
||||
@@ -920,6 +923,11 @@ var flashes = map[string]string{
|
||||
"added": "Added: they're told by email, and sign in as they do.",
|
||||
"prove-first": "First prove the team's domain is yours: Supermarket only crawls, reads or publishes to a website its team has proved.",
|
||||
"domain-proved": "Proved: the domain is the team's.",
|
||||
"team-suspended": "Suspended: its people see that it is, and its work waits.",
|
||||
"team-restored": "Restored.",
|
||||
"domain-released": "Released: another team can prove the domain now.",
|
||||
"invitations-resent": "Sent %d invitations again.",
|
||||
"view-needs-reason": "Give a reason and how long: it's recorded in the team's own log.",
|
||||
"account-removed": "Signed out: posts scheduled to it are back in Posts.",
|
||||
"own-account-connected": "Connected: you can post as it, and an admin can let others.",
|
||||
"deleted": "Deleted.",
|
||||
|
||||
Reference in New Issue
Block a user