mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 16:59:22 +02:00
authorize/evaluator: fix wrong custom policies decision (#1199)
Test will be added in #1198
This commit is contained in:
parent
01d0f7de6e
commit
79b5ae7d98
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ func (e *Evaluator) Evaluate(ctx context.Context, req *Request) (*Result, error)
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
allow = allow && (!cres.Allowed || cres.Denied)
|
||||
allow = allow && (cres.Allowed && !cres.Denied)
|
||||
if cres.Reason != "" {
|
||||
evalResult.Message = cres.Reason
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue