Lunny Xiao
|
1c80f31f40
|
Restrict permission check on repositories and fix some problems (#5314)
* fix units permission problems
* fix some bugs and merge LoadUnits to repoAssignment
* refactor permission struct and add some copyright heads
* remove unused codes
* fix routes units check
* improve permission check
* add unit tests for permission
* fix typo
* fix tests
* fix some routes
* fix api permission check
* improve permission check
* fix some permission check
* fix tests
* fix tests
* improve some permission check
* fix some permission check
* refactor AccessLevel
* fix bug
* fix tests
* fix tests
* fix tests
* fix AccessLevel
* rename CanAccess
* fix tests
* fix comment
* fix bug
* add missing unit for test repos
* fix bug
* rename some functions
* fix routes check
|
6 years ago |
Bo-Yi Wu
|
3bed594722
|
refactor: import order. (#3736)
|
7 years ago |
Morgan Bazalgette
|
8c916631f0
|
Handle refactor (#3339)
* Replace all ctx.Handle with ctx.ServerError or ctx.NotFound
* Change Handle(403) to NotFound, avoid using macaron's NotFound
|
7 years ago |
Ethan Koenig
|
a8af5abc02
|
Fix ignored errors when checking if organization, team member (#3177)
|
7 years ago |
Ethan Koenig
|
1df45ea8b0
|
Update swagger documentation (#2899)
* Update swagger documentation
Add docs for missing endpoints
Add documentation for request parameters
Make parameter naming consistent
Fix response documentation
* Restore delete comments
|
7 years ago |
Ethan Koenig
|
e4e41c4830
|
Webhooks for repo creation/deletion (#1663)
* Webhooks for repo creation/deletion
* add createHookTask
* Add handles for GetSlackPayload and GetDiscordPayload
|
7 years ago |
Antoine GIRARD
|
8b81ff17f5
|
Improve swagger doc (#2274)
* Add swagger comment for adminCreateOrg
* Add swagger comment for admin route
* add hook swagger doc
* Add tags
* Add auth
* Fix name of responses
* Edit name method
* Update vendor
* make generate-swagger
|
7 years ago |
Ethan Koenig
|
a15346a9bd
|
Fix repo API bug (#2133)
Don't require token when not necessary
|
8 years ago |
Antoine GIRARD
|
8d81576b4b
|
Improve org error handling (#2117)
* Improve ErrOrgNotExist type
Return new error type
Use good error check
Use new method to check error
Update tests
* Fix unchanged method name report
|
8 years ago |
Jonas Östanbäck
|
af497050fc
|
Add repo fork swagger (#1941)
|
8 years ago |
Ethan Koenig
|
c2ba9ca97b
|
Refactor and fix incorrect comment (#1247)
|
8 years ago |
Ethan Koenig
|
e41d044963
|
API endpoints for forks (#509)
|
8 years ago |