Added flag for operator only features (#144)

Added flag to only enable operator endpoints / links in mcs
This commit is contained in:
Alex
2020-05-26 21:35:44 -05:00
committed by GitHub
parent fa068b6d4a
commit be5cd7f148
8 changed files with 239 additions and 124 deletions

View File

@@ -53,6 +53,7 @@ func getSessionResponse(sessionID string) (*models.SessionResponse, error) {
log.Println("error getting claims from JWT", err)
return nil, errorGenericInvalidSession
}
sessionResp := &models.SessionResponse{
Pages: acl.GetAuthorizedEndpoints(claims.Actions),
Status: models.SessionResponseStatusOk,