0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-14 17:03:43 +01:00
gitea/routers/api/v1
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
..
activitypub
admin Inclusion of rename organization api (#33303) 2025-02-01 00:59:49 +00:00
misc
notify
org Inclusion of rename organization api (#33303) 2025-02-01 00:59:49 +00:00
packages
repo Reject star-related requests if stars are disabled (#33208) 2025-02-04 13:21:23 +08:00
settings
shared
swagger Inclusion of rename organization api (#33303) 2025-02-01 00:59:49 +00:00
user Reject star-related requests if stars are disabled (#33208) 2025-02-04 13:21:23 +08:00
utils
api.go Reject star-related requests if stars are disabled (#33208) 2025-02-04 13:21:23 +08:00