mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-03-13 18:00:34 -05:00
Merge pull request #6115 from kobergj/FixUserlogPanic
Fix userlog panic
This commit is contained in:
5
changelog/unreleased/fix-userlog-panic.md
Normal file
5
changelog/unreleased/fix-userlog-panic.md
Normal 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
|
||||
@@ -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())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user