add doer parameter to MoveGroupItem describing the user trying to move a group

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ committed 2026-04-02 20:00:52 -04:00
1 parent 314be8ad26
commit fd394b6d2c
4 files changed
+13 -6

No files matched your search

+1 -1
View File
@@ -143,7 +143,7 @@ func MoveGroup(ctx *context.APIContext) {
}
err = group_service.MoveGroupItem(ctx, group_service.MoveGroupOptions{
form.NewParent, id, true, npos,
}, 3)
}, ctx.Doer)
if group_model.IsErrGroupNotExist(err) {
ctx.APIErrorNotFound()
return
+1 -1
View File
@@ -1307,7 +1307,7 @@ func MoveRepoToGroup(ctx *context.APIContext) {
IsGroup: false, NewPos: npos,
ItemID: ctx.Repo.Repository.ID,
NewParent: form.NewParent,
}, ctx.Doer.ID)
}, ctx.Doer)
if err != nil {
ctx.APIErrorInternal(err)
return