mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 11:28:24 +00:00 
			
		
		
		
	| @@ -127,7 +127,7 @@ func ChangeCollaborationAccessMode(ctx *context.Context) { | ||||
|  | ||||
| // DeleteCollaboration delete a collaboration for a repository | ||||
| func DeleteCollaboration(ctx *context.Context) { | ||||
| 	if err := repo_service.DeleteCollaboration(ctx.Repo.Repository, ctx.FormInt64("id")); err != nil { | ||||
| 	if err := repo_service.DeleteCollaboration(ctx, ctx.Repo.Repository, ctx.FormInt64("id")); err != nil { | ||||
| 		ctx.Flash.Error("DeleteCollaboration: " + err.Error()) | ||||
| 	} else { | ||||
| 		ctx.Flash.Success(ctx.Tr("repo.settings.remove_collaborator_success")) | ||||
|   | ||||
| @@ -799,7 +799,7 @@ func SettingsPost(ctx *context.Context) { | ||||
| 			return | ||||
| 		} | ||||
|  | ||||
| 		if err := models.CancelRepositoryTransfer(ctx.Repo.Repository); err != nil { | ||||
| 		if err := models.CancelRepositoryTransfer(ctx, ctx.Repo.Repository); err != nil { | ||||
| 			ctx.ServerError("CancelRepositoryTransfer", err) | ||||
| 			return | ||||
| 		} | ||||
| @@ -863,7 +863,7 @@ func SettingsPost(ctx *context.Context) { | ||||
| 			return | ||||
| 		} | ||||
|  | ||||
| 		if err := repo_model.SetArchiveRepoState(repo, true); err != nil { | ||||
| 		if err := repo_model.SetArchiveRepoState(ctx, repo, true); err != nil { | ||||
| 			log.Error("Tried to archive a repo: %s", err) | ||||
| 			ctx.Flash.Error(ctx.Tr("repo.settings.archive.error")) | ||||
| 			ctx.Redirect(ctx.Repo.RepoLink + "/settings") | ||||
| @@ -881,7 +881,7 @@ func SettingsPost(ctx *context.Context) { | ||||
| 			return | ||||
| 		} | ||||
|  | ||||
| 		if err := repo_model.SetArchiveRepoState(repo, false); err != nil { | ||||
| 		if err := repo_model.SetArchiveRepoState(ctx, repo, false); err != nil { | ||||
| 			log.Error("Tried to unarchive a repo: %s", err) | ||||
| 			ctx.Flash.Error(ctx.Tr("repo.settings.unarchive.error")) | ||||
| 			ctx.Redirect(ctx.Repo.RepoLink + "/settings") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user