Former org repos admins have access to org settings
Opened this issue · 0 comments
zc-devs commented
Component
server, web-ui
Describe the bug
After changing access of a team from Administrator
to General
, the members of the mentioned group loose access to the repos settings, but still have access to the org settings.
Steps to reproduce
- Deploy Gitea and Woodpecker
- As Gitea administrator create an organization, a user and a repository
- Create a team with repos admin access
- Add a user there
- Login into WP under new user, add repository
- Add an org secret
- Log out from WP and Gitea
- As Gitea administrator revoke admin access from a team
- Log in under test user to WP again
- Check, you don't have access to a repository settings anymore
- But there is still access to an org settings
Expected behavior
There is no access to an org settings after admin permissions were revoked from a team.
System Info
Woodpecker next-9f0611d1a1
, Gitea 1.22.4
, Postgres 16
Additional context
There is no issue, if move users between the groups.
Validations
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Checked that the bug isn't fixed in the
next
version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]