taiga-back/tests/integration
Anler Hp 52f476fb34 Check permissions when accessing attachments
Attachment files dispatching is now done through `RawAttachmentView`
view that checks for appropiate permissions.

When using the development server this view just redirects to the real
media path of the file.

When using the production server the special redirection header
`X-Accel-Redirect` is used instead to improve efficiency by instructing
the server to dispatch the file instead of django, but you also need the
following configuration (Nginx):

location /attachment-files {
    internal;
    alias /path/to/taiga/media/attachment-files;
}

It's recommended to also restrict the direct access from outside to the
`attachment-files` directory by using some configuration like this:

location /media/attachment-files {
    deny all;
}
2014-07-04 12:15:48 +02:00
..
__init__.py Some integration tests for auth api. 2014-04-30 09:07:05 +02:00
test_attachments.py Check permissions when accessing attachments 2014-07-04 12:15:48 +02:00
test_auth_api.py Add more licenses agreements to the tests.integration module 2014-06-22 11:33:44 +02:00
test_mdrender.py Add more licenses agreements to the tests.integration module 2014-06-22 11:33:44 +02:00
test_models.py Optimizing `Project.update_role_points` method 2014-06-24 12:38:29 +02:00
test_neighbors.py Merge pull request #51 from taigaio/tags 2014-06-23 11:34:02 +02:00
test_occ.py Updating occ tests 2014-06-25 16:19:40 +02:00
test_project_history.py Add more licenses agreements to the tests.integration module 2014-06-22 11:33:44 +02:00
test_project_notifications.py Add more licenses agreements to the tests.integration module 2014-06-22 11:33:44 +02:00
test_project_references_sequences.py Add more licenses agreements to the tests.integration module 2014-06-22 11:33:44 +02:00
test_project_us.py Add more licenses agreements to the tests.integration module 2014-06-22 11:33:44 +02:00
test_searches.py Add more licenses agreements to the tests.integration module 2014-06-22 11:33:44 +02:00
test_stars.py Add more licenses agreements to the tests.integration module 2014-06-22 11:33:44 +02:00
test_tags.py Adding models.Model explicitly to tagged models 2014-06-23 10:58:14 +02:00
test_timeline.py Add more licenses agreements to the tests.integration module 2014-06-22 11:33:44 +02:00
test_userstorage_api.py Add more licenses agreements to the tests.integration module 2014-06-22 11:33:44 +02:00
test_vote_issues.py Add more licenses agreements to the tests.integration module 2014-06-22 11:33:44 +02:00
test_votes.py Add more licenses agreements to the tests.integration module 2014-06-22 11:33:44 +02:00