fix: potential nil pointer dereferences (#893)

This commit is contained in:
Scott McKendry
2026-05-25 02:23:48 +12:00
committed by GitHub
parent 2737a25227
commit e532cde2b6
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ type LDAPGroupRule struct {
}
func (rule *LDAPGroupRule) Evaluate(ctx *ACLContext) Effect {
if ctx == nil || ctx.UserContext == nil {
if ctx == nil || ctx.UserContext == nil || ctx.ACLs == nil {
return EffectAbstain
}