authorize: remove admin (#1833)

* authorize: remove admin

* regen rego

* add note to upgrading
This commit is contained in:
Caleb Doxsey 2021-02-01 15:22:02 -07:00 committed by GitHub
parent a5a3ab55fc
commit b7f0242090
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 204 additions and 381 deletions

View file

@ -430,12 +430,6 @@ func (a *Authenticate) deleteSession(ctx context.Context, sessionID string) erro
return session.Delete(ctx, state.dataBrokerClient, sessionID)
}
func (a *Authenticate) isAdmin(user string) bool {
state := a.state.Load()
_, ok := state.administrators[user]
return ok
}
func (a *Authenticate) userInfo(w http.ResponseWriter, r *http.Request) error {
ctx, span := trace.StartSpan(r.Context(), "authenticate.userInfo")
defer span.End()