Repository navigation
For Gitlab resolve group-inherited project permissions for repos - #7172
Merged
6543 merged 4 commits intoOct 8, 2026
Merged
Conversation
The projects list API returns `permissions: null` for some projects, so the code falls back to `GetInheritedProjectMember` to resolve the user's access level. For projects the user reaches only via a parent group, that endpoint returns 404 (the user is not a direct project member) and the project was silently skipped. On that 404, fetch the full project with `GetProject` and use its embedded `permissions` (`group_access` / `project_access`) instead. If the full-project lookup also fails, keep the list data (access level 0) rather than failing the whole page; the repo is simply filtered out later for lacking write access. This makes group-inherited projects (e.g. maintainers of a parent group) show up in the repository list. Related: woodpecker-ci#6991 (closes woodpecker-ci#6882)
Member
|
@YouCD can you format the code then the linter would be happy :) |
…ssions' into fix/gitlab-group-inherited-permissions
6543
approved these changes
Oct 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The projects list API returns
permissions: nullfor some projects, so thecode falls back to
GetInheritedProjectMemberto resolve the user's accesslevel. For projects the user reaches only via a parent group, that endpoint
returns 404 (the user is not a direct project member) and the project was
silently skipped.
On that 404, fetch the full project with
GetProjectand use its embeddedpermissions(group_access/project_access) instead. If the full-projectlookup also fails, keep the list data (access level 0) rather than failing the
whole page; the repo is simply filtered out later for lacking write access.
This makes group-inherited projects (e.g. maintainers of a parent group) show
up in the repository list.
Related: #6991 (closes #6882)