Commit graph

6 commits

Author SHA1 Message Date
Antoine GIRARD
8b24073713 Only serve attachments when linked to issue/release and if accessible by user ()
* 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
2020-01-05 01:20:08 +02:00
Brad Albright
f6b29012e0 Add /milestones endpoint ()
Create a /milestones endpoint which basically serves as a dashboard view for milestones, very similar to the /issues or /pulls page.

Closes 
2019-12-15 14:20:08 +00:00
Tamal Saha
171b359877 Use gitea forked macaron ()
Signed-off-by: Tamal Saha <tamal@appscode.com>
2019-08-23 12:40:29 -04:00
David Schneiderbauer
0b3ea42847 hide issues from org private repos w/o team assignment () 2018-06-21 12:00:13 -04:00
Ethan Koenig
91f3d77ceb Unit tests for wiki routers () 2017-11-30 17:52:15 +02:00
Ethan Koenig
7e0654bd9e Fix counts on issues dashboard ()
* Fix counts on issues dashboard

* setupSess -> setupSession

* Unit test

* Load repo owners for issues
2017-08-03 13:09:16 +08:00