taiga-back/tests
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
..
integration Check permissions when accessing attachments 2014-07-04 12:15:48 +02:00
unit Support for CELERY_ALWAYS_EAGER 2014-07-02 13:40:36 +02:00
__init__.py New tests skeleton and examples using pytest 2014-04-29 14:02:46 +02:00
conftest.py Removing unnecessary setup of test database 2014-06-23 12:26:17 +02:00
factories.py Check permissions when accessing attachments 2014-07-04 12:15:48 +02:00
fixtures.py Add more licenses agreements to the tests module 2014-06-19 22:46:31 +02:00
utils.py Decorator for overriding settings while testing 2014-07-02 13:34:14 +02:00