forgejo/modules
zeripath a9af93cb21
Nuke the incorrect permission report on /api/v1/notifications (#19761)
The permissions created in convertRepo use a minimal perm.AccessModeRead instead of
correctly computing the permission for the repository. This incorrect permission is
then reported to the user.

I do not believe that reporting the permissions is helpful and therefore I propose
we simply null these out. The user can check their permissions using a different
endpoint.

Fix #19759

Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-05-20 18:57:49 +02:00
..
activitypub
analyze Simplify IsVendor (#19626) 2022-05-06 10:12:30 +01:00
appstate
auth Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00
avatar Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00
base
cache Update go-chi/cache to utilize Ping() (#19719) 2022-05-15 20:43:27 +02:00
charset
container
context Move almost all functions' parameter db.Engine to context.Context (#19748) 2022-05-20 22:08:52 +08:00
convert Nuke the incorrect permission report on /api/v1/notifications (#19761) 2022-05-20 18:57:49 +02:00
csv
doctor Move almost all functions' parameter db.Engine to context.Context (#19748) 2022-05-20 22:08:52 +08:00
emoji
eventsource Improve Stopwatch behavior (#18930) 2022-04-25 22:45:22 +02:00
generate
git Allow custom default merge message with .gitea/default_merge_message/<merge_style>_TEMPLATE.md (#18177) 2022-05-08 20:32:45 +08:00
gitgraph Move almost all functions' parameter db.Engine to context.Context (#19748) 2022-05-20 22:08:52 +08:00
graceful Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00
hcaptcha
highlight
hostmatcher Support hostname:port to pass host matcher's check #19543 (#19543) 2022-04-29 01:39:50 +08:00
httpcache Set the LastModified header for raw files (#18356) 2022-05-09 17:54:51 +02:00
httplib
indexer Move almost all functions' parameter db.Engine to context.Context (#19748) 2022-05-20 22:08:52 +08:00
json
lfs Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00
log Only set CanColorStdout / CanColorStderr to true if the stdout/stderr is a terminal (#19581) 2022-05-03 18:03:34 +02:00
markup
metrics
migration Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00
nosql
notification Move access and repo permission to models/perm/access (#19350) 2022-05-11 12:09:36 +02:00
options Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00
packages
paginator
password
pprof
private
process
proxy
public Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00
queue Fix 64-bit atomic operations on 32-bit machines (#19531) 2022-04-27 10:32:04 -05:00
recaptcha
references
repository Update go tool dependencies (#19676) 2022-05-10 23:55:54 +02:00
secret
session
setting Enable packages by default again (as described by docs) (#19746) 2022-05-20 02:48:42 +02:00
ssh Move almost all functions' parameter db.Engine to context.Context (#19748) 2022-05-20 22:08:52 +08:00
storage
structs Respect DefaultUserIsRestricted system default when creating new user (#19310) 2022-04-29 15:38:11 -04:00
svg Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00
sync
templates Move access and repo permission to models/perm/access (#19350) 2022-05-11 12:09:36 +02:00
test Move access and repo permission to models/perm/access (#19350) 2022-05-11 12:09:36 +02:00
timeutil
translation
typesniffer
updatechecker
upload
uri
user
util Update go tool dependencies (#19676) 2022-05-10 23:55:54 +02:00
validation
web