mirror of
https://github.com/go-gitea/gitea
synced 2024-11-07 18:54:25 +00:00
ad6d08d155
Targeting #14936, #15332 Adds a collaborator permissions API endpoint according to GitHub API: https://docs.github.com/en/rest/collaborators/collaborators#get-repository-permissions-for-a-user to retrieve a collaborators permissions for a specific repository. ### Checks the repository permissions of a collaborator. `GET` `/repos/{owner}/{repo}/collaborators/{collaborator}/permission` Possible `permission` values are `admin`, `write`, `read`, `owner`, `none`. ```json { "permission": "admin", "role_name": "admin", "user": {} } ``` Where `permission` and `role_name` hold the same `permission` value and `user` is filled with the user API object. Only admins are allowed to use this API endpoint. |
||
---|---|---|
.. | ||
convert.go | ||
git_commit_test.go | ||
git_commit.go | ||
issue_comment.go | ||
issue_test.go | ||
issue.go | ||
main_test.go | ||
notification.go | ||
package.go | ||
pull_review.go | ||
pull_test.go | ||
pull.go | ||
release.go | ||
repository.go | ||
status.go | ||
user_test.go | ||
user.go | ||
utils_test.go | ||
utils.go | ||
wiki.go |