Commit b9570190 authored by Roald Nefs's avatar Roald Nefs Committed by Sander van Harmelen

Update list of available access levels (#486)

* Update list of available access levels

Update list of availabe access levels:
- Change `OwnerPermission` to plural
- Rename `Master` to `Maintainer`, see https://about.gitlab.com/2018/06/22/gitlab-11-0-released/#master-role-renamed-to-maintainer
  for more information

* Update access levels for backwards compatibility
parent 8482a5d7
......@@ -64,12 +64,16 @@ type AccessLevelValue int
//
// GitLab API docs: https://docs.gitlab.com/ce/permissions/permissions.html
const (
NoPermissions AccessLevelValue = 0
GuestPermissions AccessLevelValue = 10
ReporterPermissions AccessLevelValue = 20
DeveloperPermissions AccessLevelValue = 30
MasterPermissions AccessLevelValue = 40
OwnerPermission AccessLevelValue = 50
NoPermissions AccessLevelValue = 0
GuestPermissions AccessLevelValue = 10
ReporterPermissions AccessLevelValue = 20
DeveloperPermissions AccessLevelValue = 30
MaintainerPermissions AccessLevelValue = 40
OwnerPermissions AccessLevelValue = 50
// These are deprecated and should be removed in a future version
MasterPermissions AccessLevelValue = 40
OwnerPermission AccessLevelValue = 50
)
// BuildStateValue represents a GitLab build state.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment