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/modules/convert
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>
2 years ago
..
convert.go Move almost all functions' parameter db.Engine to context.Context (#19748) 2 years ago
git_commit.go More commit info from API (#19252) 2 years ago
git_commit_test.go Move repository model into models/repo (#17933) 3 years ago
issue.go Move almost all functions' parameter db.Engine to context.Context (#19748) 2 years ago
issue_comment.go Move almost all functions' parameter db.Engine to context.Context (#19748) 2 years ago
issue_test.go Move milestone to models/issues/ (#19278) 2 years ago
main_test.go Use a struct as test options (#19393) 2 years ago
notification.go Nuke the incorrect permission report on /api/v1/notifications (#19761) 2 years ago
package.go Move access and repo permission to models/perm/access (#19350) 2 years ago
pull.go Move access and repo permission to models/perm/access (#19350) 2 years ago
pull_review.go [Refactor] convert team(s) to apiTeam(s) (#13745) 2 years ago
pull_test.go format with gofumpt (#18184) 2 years ago
release.go Move attachment into models/repo/ (#17650) 3 years ago
repository.go Move almost all functions' parameter db.Engine to context.Context (#19748) 2 years ago
status.go format with gofumpt (#18184) 2 years ago
user.go Add API to query collaborators permission for a repository (#18761) 2 years ago
user_test.go Move user related model into models/user (#17781) 3 years ago
utils.go Add migration from GitBucket (#16767) 3 years ago
utils_test.go A better go code formatter, and now `make fmt` can run in Windows (#17684) 3 years ago
wiki.go Move repository model into models/repo (#17933) 3 years ago