This commit is contained in:
Tim-Niclas Oelschläger 2024-02-29 21:52:45 +01:00
parent 3094cc6736
commit 37c0369022
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -468,7 +468,7 @@ func GetFeeds(ctx context.Context, opts GetFeedsOptions) (ActionList, int64, err
canActorViewAction := false
if opts.Actor != nil && opts.RequestedUser != nil {
canActorViewAction = !opts.Actor.IsAdmin && opts.Actor.ID != opts.RequestedUser.ID
isOrgMemberMap, err = organization.IsOrganizationsMember(ctx, actions.GetOrgIds(), opts.Actor.ID)
isOrgMemberMap, err = organization.IsOrganizationsMember(ctx, actions.GetOrgIDs(), opts.Actor.ID)
if err != nil {
return nil, 0, err
}

View File

@ -52,7 +52,7 @@ func (actions ActionList) getRepoIDs() []int64 {
return repoIDs.Values()
}
func (actions ActionList) GetOrgIds() []int64 {
func (actions ActionList) GetOrgIDs() []int64 {
orgIDs := make(container.Set[int64], len(actions))
for _, action := range actions {
if action.Repo.Owner.IsOrganization() {