You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules/context
Lunny Xiao 8760af752a
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>
3 years ago
..
access_log.go Pass down SignedUserName down to AccessLogger context (#16605) 3 years ago
api.go Refactor auth package (#17962) 3 years ago
api_org.go Use a standalone struct name for Organization (#17632) 3 years ago
api_test.go fix API link header (#7298) 5 years ago
auth.go Refactor auth package (#17962) 3 years ago
captcha.go Fix captcha (#14488) 3 years ago
context.go Instead of using routerCtx just escape the url before routing (#18086) 3 years ago
csrf.go Redirect on bad CSRF instead of presenting bad page (#14937) 3 years ago
form.go Rename ctx.Form() to ctx.FormString() and move code into own file (#16571) 3 years ago
org.go Team permission allow different unit has different permission (#17811) 3 years ago
pagination.go Simplify parameter types (#18006) 3 years ago
permission.go Move unit into models/unit/ (#17576) 3 years ago
private.go Update docs and comments to remove macaron (#14491) 3 years ago
repo.go Simplify parameter types (#18006) 3 years ago
response.go Stop calling WriteHeader in Write (#15862) 3 years ago
xsrf.go Move macaron to chi (#14293) 3 years ago
xsrf_test.go Move macaron to chi (#14293) 3 years ago