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.
Antoine GIRARD 8b24073713 Only serve attachments when linked to issue/release and if accessible by user (#9340)
* test: add current attachement responses

* refactor: check if attachement is linked and accessible by user

* chore: clean TODO

* fix: typo attachement -> attachment

* revert un-needed go.sum change

* refactor: move models logic to models

* fix TestCreateIssueAttachment which was wrongly successful

* fix unit tests with unittype added

* fix unit tests with changes

* use a valid uuid format for pgsql int. test

* test: add unit test TestLinkedRepository

* refactor: allow uploader to access unlinked attachement

* add missing blank line

* refactor: move to a separate function repo.GetAttachment

* typo

* test: remove err test return

* refactor: use repo perm for access checking generally + 404 for all reject
5 years ago
..
setting Add password requirement info on error (#9074) 5 years ago
auth.go update #9066 Always show Password field on link account sign in page (#9147) 5 years ago
auth_openid.go Move all mail related codes from models to services/mailer (#7200) 5 years ago
avatar.go [BugFix] use default avatar for ghost user (fix 500 error) (#9536) 5 years ago
home.go Fix error logged when repos qs is empty (#9591) 5 years ago
home_test.go Only serve attachments when linked to issue/release and if accessible by user (#9340) 5 years ago
main_test.go Unit tests for wiki routers (#3022) 7 years ago
notification.go Improve notification (#8835) 5 years ago
oauth.go Use gitea forked macaron (#7933) 5 years ago
profile.go site admin could view org's members (#9346) 5 years ago