mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	fix #1997
This commit is contained in:
		| @@ -275,7 +275,7 @@ func RepoAssignment(redirect bool, args ...bool) macaron.Handler { | ||||
| 		} | ||||
|  | ||||
| 		// Admin has super access. | ||||
| 		if ctx.User.IsAdmin { | ||||
| 		if ctx.IsSigned && ctx.User.IsAdmin { | ||||
| 			ctx.Repo.AccessMode = models.ACCESS_MODE_OWNER | ||||
| 		} else { | ||||
| 			mode, err := models.AccessLevel(ctx.User, repo) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user