Skip to content

Admin team's permission is dependent on user selected permissions #4771

Closed
@adelowo

Description

@adelowo
  • Gitea version (or commit ref): 6ca8fbd
  • Git version: git version 2.15.2 (Apple Git-101.1)
  • Operating system: MacOS
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

Description

STEPS :

  • Create new team

  • In permissions, choose any of read and write, then untick code, issues, pull requests .

  • Then choose Administrator access in permissions

  • Then Update settings

  • Add a repository to the team,

  • Add a non admin user to the team

  • Access the repository, The user would not have any of the unticked permissions earlier even though he is in a team with admin access. ( for instance, he cannot view issues, PRs )

I would expect that the admin team gets all available permissions regardless of the selection(s)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions