[BUGFIX] bugfix for documents/medias

__Tasks:__
- [x] done
- [x] got feedback

__Informations:__

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| Tests pass?   | none
| Fixed tickets | none
| Doc           | none

formatting