Merge pull request #6115 from kobergj/FixUserlogPanic

Fix userlog panic
This commit is contained in:
kobergj
2023-04-24 10:50:34 +02:00
committed by GitHub
2 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
Bugfix: Fix userlog panic
userlog services paniced because of `nil` ctx. That is fixed now
https://github.com/owncloud/ocis/pull/6114

View File

@@ -352,6 +352,10 @@ func (ul *UserlogService) resolveID(ctx context.Context, userid *user.UserId, gr
return []string{userid.GetOpaqueId()}, nil
}
if ctx == nil {
return nil, errors.New("need ctx to resolve group id")
}
return ul.resolveGroup(ctx, groupid.GetOpaqueId())
}