Skip to content

Commit

Permalink
addressing @wasade comment
Browse files Browse the repository at this point in the history
  • Loading branch information
antgonza committed Mar 27, 2017
1 parent 8ef50c1 commit e6a65a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion qiita_pet/handlers/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def get(self, filepath_id):

if not validate_filepath_access_by_user(self.current_user, fid):
raise HTTPError(
404, "%s doesn't have access to "
403, "%s doesn't have access to "
"filepath_id: %s" % (self.current_user.email, str(fid)))

relpath = filepath_id_to_rel_path(fid)
Expand Down
2 changes: 1 addition & 1 deletion qiita_pet/test/test_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_download(self):

# failure
response = self.get('/download/1000')
self.assertEqual(response.code, 404)
self.assertEqual(response.code, 403)


class TestDownloadStudyBIOMSHandler(TestHandlerBase):
Expand Down

0 comments on commit e6a65a3

Please sign in to comment.