mirror of
https://github.com/go-gitea/gitea.git
synced 2025-06-22 05:58:02 +02:00
[API] Add endpount to get user org permissions (#17232)
* Add endpoint * Add swagger response + generate swagger * Stop execution if user / org is not found * Add tests Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
@ -35,3 +35,10 @@ type swaggerResponseTeamList struct {
|
||||
// in:body
|
||||
Body []api.Team `json:"body"`
|
||||
}
|
||||
|
||||
// OrganizationPermissions
|
||||
// swagger:response OrganizationPermissions
|
||||
type swaggerResponseOrganizationPermissions struct {
|
||||
// in:body
|
||||
Body api.OrganizationPermissions `json:"body"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user