0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-16 13:35:15 +01:00
gitea/services/context
wxiaoguang 37a4b233a0
Refactor repo unit "disabled" check (#31389)
1. There are already global "unit consts", no need to use context data, which is fragile
2. Remove the "String()" method from "unit", it would only cause rendering problems in templates

---------

Co-authored-by: silverwind <me@silverwind.io>
2024-06-18 00:51:13 +00:00
..
upload
access_log.go
api_org.go
api_test.go
api.go
base_test.go
base.go
captcha.go
context_cookie.go
context_model.go
context_request.go
context_response.go
context_template.go
context_test.go
context.go
csrf.go
org.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
package.go
pagination.go
permission.go
private.go
repo.go
response.go
user.go
utils.go
xsrf_test.go
xsrf.go