0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-15 03:51:32 +01:00
gitea/routers/api/v1/repo
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
..
action.go
avatar.go
blob.go
branch.go
collaborators.go
commits.go
compare.go
download.go
file.go
fork.go
git_hook.go
git_ref.go
hook_test.go
hook.go
issue_attachment.go
issue_comment_attachment.go
issue_comment.go
issue_dependency.go
issue_label.go
issue_pin.go
issue_reaction.go
issue_stopwatch.go
issue_subscription.go
issue_tracked_time.go
issue.go
key.go
label.go
language.go
license.go
main_test.go
migrate.go
milestone.go
mirror.go
notes.go
patch.go
pull_review.go
pull.go
release_attachment.go
release_tags.go
release.go
repo_test.go
repo.go
star.go Reject star-related requests if stars are disabled (#33208) 2025-02-04 13:21:23 +08:00
status.go
subscriber.go
tag.go
teams.go
topic.go
transfer.go
tree.go
wiki.go