Skip to content

Commit 101cb5f

Browse files
GiteaBotearl-warren
authored andcommitted
improve permission documentation (go-gitea#23942) (go-gitea#25078)
(cherry picked from commit 15adec1)
1 parent 700e560 commit 101cb5f

File tree

1 file changed

+24
-9
lines changed

1 file changed

+24
-9
lines changed

docs/content/doc/usage/permissions.en-us.md

+24-9
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Gitea supports permissions for repository so that you can give different access
2323

2424
## Unit
2525

26-
In Gitea, we call a sub module of a repository `Unit`. Now we have following units.
26+
In Gitea, we call a sub module of a repository `Unit`. Now we have following possible units.
2727

2828
| Name | Description | Permissions |
2929
| --------------- | ---------------------------------------------------- | ----------- |
@@ -35,6 +35,8 @@ In Gitea, we call a sub module of a repository `Unit`. Now we have following uni
3535
| ExternalWiki | Link to an external wiki | Read |
3636
| ExternalTracker | Link to an external issue tracker | Read |
3737
| Projects | The URL to the template repository | Read Write |
38+
| Packages | Packages which linked to this repository | Read Write |
39+
| Actions | Review actions logs or restart/cacnel pipelines | Read Write |
3840
| Settings | Manage the repository | Admin |
3941

4042
With different permissions, people could do different things with these units.
@@ -49,6 +51,8 @@ With different permissions, people could do different things with these units.
4951
| ExternalWiki | Link to an external wiki | - | - |
5052
| ExternalTracker | Link to an external issue tracker | - | - |
5153
| Projects | View the boards | Change issues across boards | - |
54+
| Packages | View the packages | Upload/Delete packages | - |
55+
| Actions | View the Actions logs | Approve / Cancel / Restart | - |
5256
| Settings | - | - | Manage the repository |
5357

5458
And there are some differences for permissions between individual repositories and organization repositories.
@@ -58,16 +62,27 @@ And there are some differences for permissions between individual repositories a
5862
For individual repositories, the creators are the only owners of repositories and have no limit to change anything of this
5963
repository or delete it. Repositories owners could add collaborators to help maintain the repositories. Collaborators could have `Read`, `Write` and `Admin` permissions.
6064

65+
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.
66+
67+
But you cannot delete or transfer this repository if you are not that repository's owner.
68+
6169
## Organization Repository
6270

63-
Different from individual repositories, the owner of organization repositories are the owner team of this organization.
71+
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.
72+
73+
### Owner Team
74+
75+
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.
76+
77+
### Admin Team
78+
79+
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.
80+
81+
### General Team
6482

65-
### Team
83+
A general team in an organization has unit permissions settings. It can have members and repositories scope.
6684

67-
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
68-
repositories.
85+
- A team could access all the repositories in this organization or special repositories.
86+
- A team could also be allowed to create new repositories or not.
6987

70-
The owner team will be created when the organization is created, and the creator will become the first member of the owner team.
71-
Every member of an organization must be in at least one team. The owner team cannot be deleted and only
72-
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.
73-
The Generate team can be created by the owner team to do the operations allowed by their permissions.
88+
The General team can be created to do the operations allowed by their permissions. One member could join multiple teams.

0 commit comments

Comments
 (0)