]> source.dussan.org Git - gitea.git/commit
Team permission allow different unit has different permission (#17811)
authorLunny Xiao <xiaolunwen@gmail.com>
Wed, 5 Jan 2022 03:37:00 +0000 (11:37 +0800)
committerGitHub <noreply@github.com>
Wed, 5 Jan 2022 03:37:00 +0000 (11:37 +0800)
commit8760af752abd94f050c6014c8cfa3cb6a6c854b7
tree2b2afeebc46348eec296a6cd9d086f84a94cf664
parent12ad6dd0e385fea277f5344d52865c9599232c22
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>
27 files changed:
docs/content/doc/usage/permissions.en-us.md [new file with mode: 0644]
integrations/api_repo_teams_test.go
integrations/api_team_test.go
integrations/org_test.go
models/access.go
models/fixtures/team_unit.yml
models/issue.go
models/migrations/migrations.go
models/migrations/v206.go [new file with mode: 0644]
models/org.go
models/org_team.go
models/org_team_test.go
models/perm/access_mode.go
models/repo_permission.go
models/review.go
models/unit/unit.go
modules/context/org.go
modules/convert/convert.go
modules/repository/create_test.go
modules/structs/org_team.go
options/locale/locale_en-US.ini
routers/api/v1/org/team.go
routers/web/org/teams.go
services/forms/org.go
templates/org/team/new.tmpl
templates/org/team/sidebar.tmpl
templates/swagger/v1_json.tmpl