Commit b5e3e530 authored by Ben Bodenmiller's avatar Ben Bodenmiller Committed by Mike Jang

Improve project membership details

parent cebd8df7
...@@ -6,14 +6,12 @@ ...@@ -6,14 +6,12 @@
The access levels are defined in the `Gitlab::Access` module. Currently, these levels are recognized: The access levels are defined in the `Gitlab::Access` module. Currently, these levels are recognized:
```plaintext - No access (`0`)
0 => No access - Guest (`10`)
10 => Guest access - Reporter (`20`)
20 => Reporter access - Developer (`30`)
30 => Developer access - Maintainer (`40`)
40 => Maintainer access - Owner (`50`) - Only valid to set for groups
50 => Owner access # Only valid for groups
```
## List access requests for a group or project ## List access requests for a group or project
......
...@@ -4,13 +4,17 @@ ...@@ -4,13 +4,17 @@
The access levels are defined in the `Gitlab::Access` module. Currently, these levels are recognized: The access levels are defined in the `Gitlab::Access` module. Currently, these levels are recognized:
```plaintext - No access (`0`)
10 => Guest access - Guest (`10`)
20 => Reporter access - Reporter (`20`)
30 => Developer access - Developer (`30`)
40 => Maintainer access - Maintainer (`40`)
50 => Owner access # Only valid for groups - Owner (`50`) - Only valid to set for groups
```
CAUTION: **Caution:**
Due to [an issue](https://gitlab.com/gitlab-org/gitlab/-/issues/219299),
projects in personal namespaces will not show owner (`50`) permission
for owner.
## List all members of a group or project ## List all members of a group or project
......
...@@ -41,11 +41,12 @@ can be accessed only by project members by default. ...@@ -41,11 +41,12 @@ can be accessed only by project members by default.
Users can be members of multiple groups and projects. The following access Users can be members of multiple groups and projects. The following access
levels are available (defined in the `Gitlab::Access` module): levels are available (defined in the `Gitlab::Access` module):
- Guest - No access (`0`)
- Reporter - Guest (`10`)
- Developer - Reporter (`20`)
- Maintainer - Developer (`30`)
- Owner - Maintainer (`40`)
- Owner (`50`)
If a user is the member of both a project and the project parent group, the If a user is the member of both a project and the project parent group, the
higher permission is taken into account for the project. higher permission is taken into account for the project.
...@@ -56,6 +57,12 @@ can still view the groups and their entities (like epics). ...@@ -56,6 +57,12 @@ can still view the groups and their entities (like epics).
Project membership (where the group membership is already taken into account) Project membership (where the group membership is already taken into account)
is stored in the `project_authorizations` table. is stored in the `project_authorizations` table.
CAUTION: **Caution:**
Due to [an issue](https://gitlab.com/gitlab-org/gitlab/-/issues/219299),
projects in personal namespace will not show owner (`50`) permission in
`project_authorizations` table. Note however that [`user.owned_projects`](https://gitlab.com/gitlab-org/gitlab/blob/0d63823b122b11abd2492bca47cc26858eee713d/app/models/user.rb#L906-916)
is calculated properly.
### Confidential issues ### Confidential issues
Confidential issues can be accessed only by project members who are at least Confidential issues can be accessed only by project members who are at least
......
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