gitea/modules/convert
zeripath a9af93cb21
Nuke the incorrect permission report on /api/v1/notifications ()
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 

Signed-off-by: Andrew Thornton <art27@cantab.net>
..
convert.go Move almost all functions' parameter db.Engine to context.Context ()
git_commit.go More commit info from API ()
git_commit_test.go Move repository model into models/repo ()
issue.go Move almost all functions' parameter db.Engine to context.Context ()
issue_comment.go Move almost all functions' parameter db.Engine to context.Context ()
issue_test.go Move milestone to models/issues/ ()
main_test.go Use a struct as test options ()
notification.go Nuke the incorrect permission report on /api/v1/notifications ()
package.go Move access and repo permission to models/perm/access ()
pull.go Move access and repo permission to models/perm/access ()
pull_review.go [Refactor] convert team(s) to apiTeam(s) ()
pull_test.go format with gofumpt ()
release.go Move attachment into models/repo/ ()
repository.go Move almost all functions' parameter db.Engine to context.Context ()
status.go format with gofumpt ()
user.go Add API to query collaborators permission for a repository ()
user_test.go Move user related model into models/user ()
utils.go Add migration from GitBucket ()
utils_test.go A better go code formatter, and now `make fmt` can run in Windows ()
wiki.go Move repository model into models/repo ()