Skip to main content
Version: 1.21.1

Permissions

Gitea supports permissions for repository so that you can give different access for different people. At first, we need to know about Unit.

Unit

In Gitea, we call a sub module of a repository Unit. Now we have following possible units.

NameDescriptionPermissions
CodeAccess source code, files, commits and branches.Read Write
IssuesOrganize bug reports, tasks and milestones.Read Write
PullRequestsEnable pull requests and code reviews.Read Write
ReleasesTrack project versions and downloads.Read Write
WikiWrite and share documentation with collaborators.Read Write
ExternalWikiLink to an external wikiRead
ExternalTrackerLink to an external issue trackerRead
ProjectsThe URL to the template repositoryRead Write
PackagesPackages which linked to this repositoryRead Write
ActionsReview actions logs or restart/cacnel pipelinesRead Write
SettingsManage the repositoryAdmin

With different permissions, people could do different things with these units.

NameReadWriteAdmin
CodeView code trees, files, commits, branches and etc.Push codes.-
IssuesView issues and create new issues.Add labels, assign, close-
PullRequestsView pull requests and create new pull requests.Add labels, assign, close-
ReleasesView releases and download files.Create/Edit releases-
WikiView wiki pages. Clone the wiki repository.Create/Edit wiki pages, push-
ExternalWikiLink to an external wiki--
ExternalTrackerLink to an external issue tracker--
ProjectsView the boardsChange issues across boards-
PackagesView the packagesUpload/Delete packages-
ActionsView the Actions logsApprove / Cancel / Restart-
Settings--Manage the repository

And there are some differences for permissions between individual repositories and organization repositories.

Individual Repository

For individual repositories, the creators are the only owners of repositories and have no limit to change anything of this repository or delete it. Repositories owners could add collaborators to help maintain the repositories. Collaborators could have Read, Write and Admin permissions.

For a private repository, the experience is similar to visiting an anonymous public repository. You have access to all the available content within the repository, including the ability to clone the code, create issues, respond to issue comments, submit pull requests, and more. If you have 'Write' permission, you can push code to specific branches of the repository, provided it's permitted by the branch protection rules. Additionally, you can make changes to the wiki pages. With 'Admin' permission, you have the ability to modify the repository's settings.

But you cannot delete or transfer this repository if you are not that repository's owner.

Organization Repository

For individual repositories, the owner is the user who created it. For organization repositories, the owners are the members of the owner team on this organization. All the permissions depends on the team permission settings.

Owner Team

The owner team will be created when the organization is created, and the creator will become the first member of the owner team. The owner team cannot be deleted and there is at least one member.

Admin Team

When creating teams, there are two types of teams. One is the admin team, another is the general team. An admin team can be created to manage some of the repositories, whose members can do anything with these repositories. Only members of the owner or admin team can create a new team.

General Team

A general team in an organization has unit permissions settings. It can have members and repositories scope.

  • A team could access all the repositories in this organization or special repositories.
  • A team could also be allowed to create new repositories or not.

The General team can be created to do the operations allowed by their permissions. One member could join multiple teams.