mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-05-18 10:10:14 +00:00
tests: fix tests
This commit is contained in:
@@ -68,8 +68,8 @@ func (engine *PolicyEngine) evaluateRuleByName(name RuleName, ctx *ACLContext) E
|
||||
rule, exists := engine.rules[name]
|
||||
|
||||
if !exists {
|
||||
engine.log.App.Warn().Str("rule", string(name)).Msg("Rule not found in policy engine, defaulting to abstain")
|
||||
return EffectAbstain
|
||||
engine.log.App.Warn().Str("rule", string(name)).Msg("Rule not found in policy engine, defaulting to deny")
|
||||
return EffectDeny
|
||||
}
|
||||
|
||||
return rule.Evaluate(ctx)
|
||||
|
||||
Reference in New Issue
Block a user