forgejo/services
zeripath 15b61dac98
Prevent 500 is head repo does not have PullRequest unit in IsUserAllowedToUpdate (#20839) (#20848)
Backport #20621

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>
2022-08-18 14:55:34 -04:00
..
agit move agit dependcy (#19998) 2022-06-17 20:17:12 +02:00
asymkey Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
attachment
auth EscapeFilter the group dn membership (#20200) (#20254) 2022-07-06 20:51:40 +01:00
automerge Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
comments Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
context
cron
externalaccount
forms Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
gitdiff Remove legacy git code (ver < 2.0), fine tune markup tests (#19930) 2022-06-16 23:47:44 +08:00
issue Check if project has the same repository id with issue when assign project to issue (#20133) (#20188) 2022-07-01 15:00:05 +02:00
lfs
mailer Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
migrations fix merge (#20819) 2022-08-17 11:33:26 -04:00
mirror Always try to fetch repo for mirrors (#19975) 2022-06-15 23:58:44 +08:00
org
packages Use correct context to get package content (#20673) (#20676) 2022-08-05 14:55:16 -04:00
pull Prevent 500 is head repo does not have PullRequest unit in IsUserAllowedToUpdate (#20839) (#20848) 2022-08-18 14:55:34 -04:00
release fix permission check for delete tag (#19985) 2022-06-16 22:03:03 +02:00
repository Add migrate repo archiver and packages storage support on command line (#20757) (#20806) 2022-08-18 09:27:56 +08:00
task
user
webhook
wiki