fix panic in userlog service

Signed-off-by: jkoberg <jkoberg@owncloud.com>
This commit is contained in:
jkoberg
2023-04-24 10:02:22 +02:00
parent 728558c955
commit 4354f5a84b
2 changed files with 9 additions and 0 deletions
@@ -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
+4
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())
}