mirror of
https://github.com/go-gitea/gitea
synced 2024-06-01 19:06:52 +02:00
lint fix
This commit is contained in:
parent
3094cc6736
commit
37c0369022
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user