You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Team permission allow different unit has different permission (#17811)
* Team permission allow different unit has different permission
* Finish the interface and the logic
* Fix lint
* Fix translation
* align center for table cell content
* Fix fixture
* merge
* Fix test
* Add deprecated
* Improve code
* Add tooltip
* Fix swagger
* Fix newline
* Fix tests
* Fix tests
* Fix test
* Fix test
* Max permission of external wiki and issues should be read
* Move team units with limited max level below units table
* Update label and column names
* Some improvements
* Fix lint
* Some improvements
* Fix template variables
* Add permission docs
* improve doc
* Fix fixture
* Fix bug
* Fix some bug
* fix
* gofumpt
* Integration test for migration (#18124)
integrations: basic test for Gitea {dump,restore}-repo
This is a first step for integration testing of DumpRepository and
RestoreRepository. It:
runs a Gitea server,
dumps a repo via DumpRepository to the filesystem,
restores the repo via RestoreRepository from the filesystem,
dumps the restored repository to the filesystem,
compares the first and second dump and expects them to be identical
The verification is trivial and the goal is to add more tests for each
topic of the dump.
Signed-off-by: Loïc Dachary <loic@dachary.org>
* Team permission allow different unit has different permission
* Finish the interface and the logic
* Fix lint
* Fix translation
* align center for table cell content
* Fix fixture
* merge
* Fix test
* Add deprecated
* Improve code
* Add tooltip
* Fix swagger
* Fix newline
* Fix tests
* Fix tests
* Fix test
* Fix test
* Max permission of external wiki and issues should be read
* Move team units with limited max level below units table
* Update label and column names
* Some improvements
* Fix lint
* Some improvements
* Fix template variables
* Add permission docs
* improve doc
* Fix fixture
* Fix bug
* Fix some bug
* Fix bug
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Aravinth Manivannan <realaravinth@batsense.net>
| Wiki | View wiki pages. Clone the wiki repository. | Create/Edit wiki pages, push | - |
49
+
| ExternalWiki | Link to an external wiki | - | - |
50
+
| ExternalTracker | Link to an external issue tracker | - | - |
51
+
| Projects | View the boards | Change issues across boards | - |
52
+
| Settings | - | - | Manage the repository |
53
+
54
+
And there are some differences for permissions between individual repositories and organization repositories.
55
+
56
+
## Individual Repository
57
+
58
+
For individual repositories, the creators are the only owners of repositories and have no limit to change anything of this
59
+
repository or delete it. Repositories owners could add collaborators to help maintain the repositories. Collaborators could have `Read`, `Write` and `Admin` permissions.
60
+
61
+
## Organization Repository
62
+
63
+
Different from individual repositories, the owner of organization repositories are the owner team of this organization.
64
+
65
+
### Team
66
+
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.
69
+
70
+
The owner team will be created when the organization created and the creator will become the first member of the owner team.
71
+
Notice Gitea will not allow a people is a member of organization but not in any team. The owner team could not be deleted and only
72
+
members of owner team could create a new team. Admin team could be created to manage some of repositories, members of admin team
73
+
could do anything with these repositories. Generate team could be created by the owner team to do the permissions allowed operations.
0 commit comments