diff options
Diffstat (limited to 'docs/gl_objects/access_requests.rst')
-rw-r--r-- | docs/gl_objects/access_requests.rst | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/gl_objects/access_requests.rst b/docs/gl_objects/access_requests.rst index 467c3e5..e384534 100644 --- a/docs/gl_objects/access_requests.rst +++ b/docs/gl_objects/access_requests.rst @@ -7,11 +7,11 @@ Users can request access to groups and projects. When access is granted the user should be given a numerical access level. The following constants are provided to represent the access levels: -* ``gitlab.GUEST_ACCESS``: ``10`` -* ``gitlab.REPORTER_ACCESS``: ``20`` -* ``gitlab.DEVELOPER_ACCESS``: ``30`` -* ``gitlab.MAINTAINER_ACCESS``: ``40`` -* ``gitlab.OWNER_ACCESS``: ``50`` +* ``gitlab.const.GUEST_ACCESS``: ``10`` +* ``gitlab.const.REPORTER_ACCESS``: ``20`` +* ``gitlab.const.DEVELOPER_ACCESS``: ``30`` +* ``gitlab.const.MAINTAINER_ACCESS``: ``40`` +* ``gitlab.const.OWNER_ACCESS``: ``50`` References ---------- @@ -43,7 +43,7 @@ Create an access request:: Approve an access request:: ar.approve() # defaults to DEVELOPER level - ar.approve(access_level=gitlab.MAINTAINER_ACCESS) # explicitly set access level + ar.approve(access_level=gitlab.const.MAINTAINER_ACCESS) # explicitly set access level Deny (delete) an access request:: |