mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-06-06 05:51:19 +08:00
Improve NOFXi agent strategy creation flow
This commit is contained in:
@@ -16,7 +16,7 @@ func (s *Server) RegisterAgentHandler(h *agent.WebHandler) {
|
||||
ctx = agent.WithSessionPolicy(ctx, agent.SessionPolicy{
|
||||
Authenticated: true,
|
||||
IsAdmin: isAdmin,
|
||||
CanExecuteTrade: isAdmin,
|
||||
CanExecuteTrade: true,
|
||||
CanViewSensitiveSecrets: false,
|
||||
})
|
||||
req := c.Request.WithContext(ctx)
|
||||
@@ -28,7 +28,7 @@ func (s *Server) RegisterAgentHandler(h *agent.WebHandler) {
|
||||
ctx = agent.WithSessionPolicy(ctx, agent.SessionPolicy{
|
||||
Authenticated: true,
|
||||
IsAdmin: isAdmin,
|
||||
CanExecuteTrade: isAdmin,
|
||||
CanExecuteTrade: true,
|
||||
CanViewSensitiveSecrets: false,
|
||||
})
|
||||
req := c.Request.WithContext(ctx)
|
||||
|
||||
Reference in New Issue
Block a user