Skip to content

Commit

Permalink
AccessLevel enum matches GitLab docs
Browse files Browse the repository at this point in the history
Valid access levels, according to:

https://docs.gitlab.com/ce/api/access_requests.html

are currently:

* No access (0)
* Minimal access (5) (Introduced in GitLab 13.5.)
* Guest (10)
* Reporter (20)
* Developer (30)
* Maintainer (40)
* Owner (50) - Only valid to set for groups

This commit ensures that the enum matches the docs.
This is a follow-up to PR smarkets#279.
  • Loading branch information
Sarah Mount committed Feb 27, 2021
1 parent 0c0e044 commit a76e289
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion marge/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,10 @@ def access_level(self):
@unique
class AccessLevel(IntEnum):
# See https://docs.gitlab.com/ce/api/access_requests.html
none = 0
minimal = 5
guest = 10
reporter = 20
developer = 30
master = 40
maintainer = 40
owner = 50

0 comments on commit a76e289

Please sign in to comment.