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/services
zeripath 0724ca451e
Prevent 500 is head repo does not have PullRequest unit in IsUserAllowedToUpdate (#20839)
Some repositories do not have the PullRequest unit present in their configuration
and unfortunately the way that IsUserAllowedToUpdate currently works assumes
that this is an error instead of just returning false.

This PR simply swallows this error allowing the function to return false.

Fix #20621

Signed-off-by: Andrew Thornton <art27@cantab.net>

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
2 years ago
..
agit Add more linters to improve code readability (#19989) 2 years ago
asymkey Refactor AssertExistsAndLoadBean to use generics (#20797) 2 years ago
attachment Refactor AssertExistsAndLoadBean to use generics (#20797) 2 years ago
auth auth/reverseproxy: Add support for full name (#20776) 2 years ago
automerge Add more linters to improve code readability (#19989) 2 years ago
comments Move issues related files into models/issues (#19931) 2 years ago
context Move almost all functions' parameter db.Engine to context.Context (#19748) 2 years ago
cron Make better use of i18n (#20096) 2 years ago
externalaccount Refactor auth package (#17962) 3 years ago
forms refactor webhook *NewPost (#20729) 2 years ago
gitdiff Refactor AssertExistsAndLoadBean to use generics (#20797) 2 years ago
issue Refactor AssertExistsAndLoadBean to use generics (#20797) 2 years ago
lfs Move some code into models/git (#19879) 2 years ago
mailer Refactor AssertExistsAndLoadBean to use generics (#20797) 2 years ago
migrations Add proxy host into allow list (#20798) 2 years ago
mirror Add new API endpoints for push mirrors management (#19841) 2 years ago
org Refactor AssertExistsAndLoadBean to use generics (#20797) 2 years ago
packages Use correct context to get package content (#20673) 2 years ago
pull Prevent 500 is head repo does not have PullRequest unit in IsUserAllowedToUpdate (#20839) 2 years ago
release Refactor AssertExistsAndLoadBean to use generics (#20797) 2 years ago
repository Add migrate repo archiver and packages storage support on command line (#20757) 2 years ago
task Add more linters to improve code readability (#19989) 2 years ago
user Refactor AssertExistsAndLoadBean to use generics (#20797) 2 years ago
webhook Refactor AssertExistsAndLoadBean to use generics (#20797) 2 years ago
wiki Refactor AssertExistsAndLoadBean to use generics (#20797) 2 years ago