mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Fix bug that collaborators are able to modify settings of repository
This commit is contained in:
		@@ -260,7 +260,7 @@ func RepoAssignment(redirect bool, args ...bool) martini.Handler {
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func RequireOwner() martini.Handler {
 | 
			
		||||
func RequireTrueOwner() martini.Handler {
 | 
			
		||||
	return func(ctx *Context) {
 | 
			
		||||
		if !ctx.Repo.IsTrueOwner {
 | 
			
		||||
			if !ctx.IsSigned {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user