0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-04-04 05:45:23 +02:00

fix no columns found to update error when recalculating group access

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2025-08-12 22:16:21 -04:00
parent 5472587c3a
commit c934365546
No known key found for this signature in database
GPG Key ID: 924A5F6AF051E87C

View File

@ -135,7 +135,7 @@ func RecalculateGroupAccess(ctx context.Context, g *group_model.Group, isNew boo
"type": u.Type,
"team_id": t.ID,
"group_id": g.ID,
}).Update(&group_model.GroupUnit{
}).Cols("access_mode").Update(&group_model.GroupUnit{
AccessMode: newAccessMode,
}); err != nil {
return err