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:
@@ -116,7 +116,7 @@ func (s *Server) cannotSignIn(u *users.User) string {
|
||||
return badSignIn
|
||||
}
|
||||
if s.multi() {
|
||||
if list, err := users.TeamsOf(s.platform(), u.ID); err != nil || len(list) == 0 {
|
||||
if list, err := users.TeamsOf(s.platform(), u.ID); (err != nil || len(list) == 0) && !s.isPlatformAdmin(u) {
|
||||
return "This account isn't part of any team any more."
|
||||
}
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user