improve permission documentation (#23942)
This commit is contained in:
parent
11598885b3
commit
d851bd9a6b
1 changed files with 24 additions and 9 deletions
|
@ -25,7 +25,7 @@ Gitea supports permissions for repository so that you can give different access
|
||||||
|
|
||||||
## Unit
|
## Unit
|
||||||
|
|
||||||
In Gitea, we call a sub module of a repository `Unit`. Now we have following units.
|
In Gitea, we call a sub module of a repository `Unit`. Now we have following possible units.
|
||||||
|
|
||||||
| Name | Description | Permissions |
|
| Name | Description | Permissions |
|
||||||
| --------------- | ---------------------------------------------------- | ----------- |
|
| --------------- | ---------------------------------------------------- | ----------- |
|
||||||
|
@ -37,6 +37,8 @@ In Gitea, we call a sub module of a repository `Unit`. Now we have following uni
|
||||||
| ExternalWiki | Link to an external wiki | Read |
|
| ExternalWiki | Link to an external wiki | Read |
|
||||||
| ExternalTracker | Link to an external issue tracker | Read |
|
| ExternalTracker | Link to an external issue tracker | Read |
|
||||||
| Projects | The URL to the template repository | Read Write |
|
| Projects | The URL to the template repository | Read Write |
|
||||||
|
| Packages | Packages which linked to this repository | Read Write |
|
||||||
|
| Actions | Review actions logs or restart/cacnel pipelines | Read Write |
|
||||||
| Settings | Manage the repository | Admin |
|
| Settings | Manage the repository | Admin |
|
||||||
|
|
||||||
With different permissions, people could do different things with these units.
|
With different permissions, people could do different things with these units.
|
||||||
|
@ -51,6 +53,8 @@ With different permissions, people could do different things with these units.
|
||||||
| ExternalWiki | Link to an external wiki | - | - |
|
| ExternalWiki | Link to an external wiki | - | - |
|
||||||
| ExternalTracker | Link to an external issue tracker | - | - |
|
| ExternalTracker | Link to an external issue tracker | - | - |
|
||||||
| Projects | View the boards | Change issues across boards | - |
|
| Projects | View the boards | Change issues across boards | - |
|
||||||
|
| Packages | View the packages | Upload/Delete packages | - |
|
||||||
|
| Actions | View the Actions logs | Approve / Cancel / Restart | - |
|
||||||
| Settings | - | - | Manage the repository |
|
| Settings | - | - | Manage the repository |
|
||||||
|
|
||||||
And there are some differences for permissions between individual repositories and organization repositories.
|
And there are some differences for permissions between individual repositories and organization repositories.
|
||||||
|
@ -60,16 +64,27 @@ And there are some differences for permissions between individual repositories a
|
||||||
For individual repositories, the creators are the only owners of repositories and have no limit to change anything of this
|
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.
|
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
|
## Organization Repository
|
||||||
|
|
||||||
Different from individual repositories, the owner of organization repositories are the owner team of this organization.
|
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.
|
||||||
|
|
||||||
### Team
|
### Owner Team
|
||||||
|
|
||||||
A 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 changed by the owner team. A team could also be allowed to create new
|
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.
|
||||||
repositories.
|
|
||||||
|
|
||||||
The owner team will be created when the organization is created, and the creator will become the first member of the owner team.
|
### Admin Team
|
||||||
Every member of an organization must be in at least one team. The owner team cannot be deleted and only
|
|
||||||
members of the owner team can create a new team. An admin team can be created to manage some of the repositories, whose members can do anything with these repositories.
|
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.
|
||||||
The Generate team can be created by the owner team to do the operations allowed by their permissions.
|
|
||||||
|
### 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.
|
||||||
|
|
Loading…
Reference in a new issue