Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
strantalis committed Nov 20, 2024
1 parent f31e755 commit 196ba2f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions service/internal/auth/casbin.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,9 @@ func NewCasbinEnforcer(c CasbinConfig, logger *logger.Logger) (*Enforcer, error)
}

isDefaultAdapter := false
// If adapter is not provided, use the default string adapter
if c.Adapter == nil {
isDefaultAdapter = true
// Set empty policy string so we can load the default policy
// later if a different adapter is provided
c.Adapter = stringadapter.NewAdapter(c.Csv)
}

Expand Down

0 comments on commit 196ba2f

Please sign in to comment.