Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions auth/grants.go
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,8 @@ func (s *SIPGrant) MarshalLogObject(e zapcore.ObjectEncoder) error {
type AgentGrant struct {
// Admin grants to create/update/delete Cloud Agents.
Admin bool `json:"admin,omitempty"`
// CreateSimulation grants access to create simulations to evaluate an agent.
CreateSimulation bool `json:"createSimulation,omitempty"`
}

func (s *AgentGrant) Clone() *AgentGrant {
Expand All @@ -571,6 +573,7 @@ func (s *AgentGrant) MarshalLogObject(e zapcore.ObjectEncoder) error {
}

e.AddBool("Admin", s.Admin)
e.AddBool("CreateSimulation", s.CreateSimulation)
return nil
}

Expand Down
Loading