0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-04-10 16:22:48 +02:00

Set owner id to zero when GetRegistrationToken for repo ()

Fix .

It's split from .

Although  could also fix , it has change a lot so it's not a
good idea to backport it.
This commit is contained in:
Jason Song 2024-07-30 02:46:45 +08:00 committed by GitHub
parent d39bce7f00
commit 81fa471119
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -504,7 +504,7 @@ func (Action) GetRegistrationToken(ctx *context.APIContext) {
// "200":
// "$ref": "#/responses/RegistrationToken"
shared.GetRegistrationToken(ctx, ctx.Repo.Repository.OwnerID, ctx.Repo.Repository.ID)
shared.GetRegistrationToken(ctx, 0, ctx.Repo.Repository.ID)
}
var _ actions_service.API = new(Action)