mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	only assign auto-admin when sign up by web
This commit is contained in:
		@@ -206,7 +206,7 @@ func runWeb(ctx *cli.Context) {
 | 
			
		||||
		m.Get("/issues", user.Issues)
 | 
			
		||||
	}, reqSignIn)
 | 
			
		||||
 | 
			
		||||
	// API.
 | 
			
		||||
	// ***** START: API *****
 | 
			
		||||
	// FIXME: custom form error response.
 | 
			
		||||
	m.Group("/api", func() {
 | 
			
		||||
		m.Group("/v1", func() {
 | 
			
		||||
@@ -248,6 +248,7 @@ func runWeb(ctx *cli.Context) {
 | 
			
		||||
			})
 | 
			
		||||
		})
 | 
			
		||||
	}, ignSignIn)
 | 
			
		||||
	// ***** END: API *****
 | 
			
		||||
 | 
			
		||||
	// ***** START: User *****
 | 
			
		||||
	m.Group("/user", func() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user