fix compilation errors after rebase

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2026-04-02 20:01:15 -04:00
parent 2a56bfbd64
commit 7c18a45f86
6 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -357,7 +357,7 @@ func GetGroupRepos(ctx *context.APIContext) {
}
repos := make([]*api.Repository, len(groupRepos))
for i, repo := range groupRepos {
permission, err := access_model.GetUserRepoPermission(ctx, repo, ctx.Doer)
permission, err := access_model.GetIndividualUserRepoPermission(ctx, repo, ctx.Doer)
if err != nil {
ctx.APIErrorInternal(err)
return
+1 -1
View File
@@ -118,7 +118,7 @@ func UpdateGeneralSettings(ctx *context.Context) {
if ctx.FormBool("cross_repo_add_target") {
targetRepoName := ctx.FormString("cross_repo_add_target_name")
if targetRepoName != "" {
targetRepo, err := repo_model.GetRepositoryByName(ctx, rCtx.OwnerID, targetRepoName)
targetRepo, err := repo_model.GetRepositoryByName(ctx, rCtx.OwnerID, rCtx.GroupID, targetRepoName)
if err != nil {
if repo_model.IsErrRepoNotExist(err) {
ctx.JSONError("Repository doesn't exist")
+2
View File
@@ -36,6 +36,7 @@ const (
type runnersCtx struct {
OwnerID int64
RepoID int64
GroupID int64
IsRepo bool
IsOrg bool
IsAdmin bool
@@ -49,6 +50,7 @@ func getRunnersCtx(ctx *context.Context) (*runnersCtx, error) {
if ctx.Data["PageIsRepoSettings"] == true {
return &runnersCtx{
RepoID: ctx.Repo.Repository.ID,
GroupID: ctx.Repo.Repository.GroupID,
OwnerID: 0,
IsRepo: true,
RunnersTemplate: tplRepoRunners,