mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 11:28:24 +00:00 
			
		
		
		
	* Add configuration flag SSH_EXPOSE_ANONYMOUS If this flag (default True) is set to false, the SSH clone URL will only be exposed if the current user is signed in. * Default SSH exposure set to false To match GitHub and for security reasons, SSH URL exposure is disabled by default. In addition to that. minor code changes have been applied. Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de> * Add integration tests * Hide clone button neither HTTP and SSH is enabled Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de>
This commit is contained in:
		
				
					committed by
					
						 Lunny Xiao
						Lunny Xiao
					
				
			
			
				
	
			
			
			
						parent
						
							32f289ae3b
						
					
				
				
					commit
					0b177574c9
				
			| @@ -285,6 +285,7 @@ func RepoAssignment() macaron.Handler { | ||||
| 		ctx.Data["IsRepositoryWriter"] = ctx.Repo.IsWriter() | ||||
|  | ||||
| 		ctx.Data["DisableSSH"] = setting.SSH.Disabled | ||||
| 		ctx.Data["ExposeAnonSSH"] = setting.SSH.ExposeAnonymous | ||||
| 		ctx.Data["DisableHTTP"] = setting.Repository.DisableHTTPGit | ||||
| 		ctx.Data["CloneLink"] = repo.CloneLink() | ||||
| 		ctx.Data["WikiCloneLink"] = repo.WikiCloneLink() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user