mirror of https://github.com/go-gitea/gitea.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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. |
3 years ago | |
---|---|---|
.. | ||
admin_user.go | 4 years ago | |
attachment.go | 5 years ago | |
commit_status.go | 4 years ago | |
cron.go | 5 years ago | |
doc.go | 6 years ago | |
fork.go | 3 years ago | |
git_blob.go | 6 years ago | |
git_hook.go | 6 years ago | |
hook.go | 3 years ago | |
issue.go | 3 years ago | |
issue_comment.go | 3 years ago | |
issue_label.go | 5 years ago | |
issue_milestone.go | 4 years ago | |
issue_reaction.go | 5 years ago | |
issue_stopwatch.go | 4 years ago | |
issue_tracked_time.go | 5 years ago | |
lfs_lock.go | 6 years ago | |
miscellaneous.go | 6 years ago | |
nodeinfo.go | 3 years ago | |
notifications.go | 3 years ago | |
org.go | 3 years ago | |
org_member.go | 6 years ago | |
org_team.go | 3 years ago | |
org_type.go | 6 years ago | |
package.go | 3 years ago | |
pull.go | 3 years ago | |
pull_review.go | 4 years ago | |
release.go | 5 years ago | |
repo.go | 3 years ago | |
repo_branch.go | 3 years ago | |
repo_collaborator.go | 3 years ago | |
repo_commit.go | 3 years ago | |
repo_file.go | 3 years ago | |
repo_key.go | 6 years ago | |
repo_note.go | 4 years ago | |
repo_refs.go | 6 years ago | |
repo_tag.go | 4 years ago | |
repo_topic.go | 5 years ago | |
repo_tree.go | 6 years ago | |
repo_watch.go | 6 years ago | |
repo_wiki.go | 3 years ago | |
settings.go | 4 years ago | |
status.go | 4 years ago | |
task.go | 5 years ago | |
user.go | 4 years ago | |
user_app.go | 5 years ago | |
user_email.go | 6 years ago | |
user_gpgkey.go | 4 years ago | |
user_key.go | 6 years ago |