mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	API /admin/users/{username} missing parameter (#4775)
This commit is contained in:
		 EnricoFerro
					EnricoFerro
				
			
				
					committed by
					
						 techknowlogick
						techknowlogick
					
				
			
			
				
	
			
			
			 techknowlogick
						techknowlogick
					
				
			
						parent
						
							127f477056
						
					
				
				
					commit
					912953e82a
				
			
							
								
								
									
										2
									
								
								vendor/code.gitea.io/sdk/gitea/admin_user.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/code.gitea.io/sdk/gitea/admin_user.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -51,6 +51,8 @@ type EditUserOption struct { | ||||
| 	AllowGitHook     *bool  `json:"allow_git_hook"` | ||||
| 	AllowImportLocal *bool  `json:"allow_import_local"` | ||||
| 	MaxRepoCreation  *int   `json:"max_repo_creation"` | ||||
| 	ProhibitLogin    *bool  `json:"prohibit_login"` | ||||
| 	AllowCreateOrganization *bool `json:"allow_create_organization"` | ||||
| } | ||||
|  | ||||
| // AdminEditUser modify user informations | ||||
|   | ||||
							
								
								
									
										7
									
								
								vendor/code.gitea.io/sdk/gitea/user.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								vendor/code.gitea.io/sdk/gitea/user.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -42,3 +42,10 @@ func (c *Client) GetUserInfo(user string) (*User, error) { | ||||
| 	err := c.getParsedResponse("GET", fmt.Sprintf("/users/%s", user), nil, nil, u) | ||||
| 	return u, err | ||||
| } | ||||
|  | ||||
| // GetMyUserInfo get user info of current user | ||||
| func (c *Client) GetMyUserInfo() (*User, error) { | ||||
| 	u := new(User) | ||||
| 	err := c.getParsedResponse("GET", "/user", nil, nil, u) | ||||
| 	return u, err | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user