0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-11 22:02:48 +01:00
gitea/routers
Henrique Corrêa d0f4e92563
Reject star-related requests if stars are disabled (#33208)
This PR fixes #33205.

If stars are disabled:
* The `.../repo/stars` page returns a 403 Forbidden error
* Star-related API endpoints return a 403 Forbidden error saying `Stars are disabled.`
* Same for action endpoints

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-02-04 13:21:23 +08:00
..
api Reject star-related requests if stars are disabled (#33208) 2025-02-04 13:21:23 +08:00
common Support performance trace (#32973) 2025-01-21 18:57:07 +00:00
install Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
private User facing messages for AGit errors (#33012) 2025-01-27 02:33:39 +00:00
utils Refactor older tests to use testify (#33140) 2025-01-09 09:21:47 +08:00
web Reject star-related requests if stars are disabled (#33208) 2025-02-04 13:21:23 +08:00
init.go Prepare for support performance trace (#33286) 2025-01-15 20:05:18 +00:00