mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-02 15:10:43 +02:00
add doer parameter to MoveGroupItem describing the user trying to move a group
This commit is contained in:
1 parent
314be8ad26
commit
fd394b6d2c
4 files changed
+13
-6
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user