Protecting Media files e.g. PDF Documents, Images and other files behind user authentication #6789
-
Hello Sulu Community! I've tried:
Any ideas to what I might be doing wrong? Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
You need atleast a security system on one of your webspaces if I remember correctly. Then security on website site is activated and the following lines will validate if you are allowed to access the media or not inside the new security system. sulu/src/Sulu/Bundle/MediaBundle/Controller/MediaStreamController.php Lines 145 to 155 in c4867cb |
Beta Was this translation helpful? Give feedback.
-
I solved the problem by letting the protection zone start behind a different path than |
Beta Was this translation helpful? Give feedback.
I solved the problem by letting the protection zone start behind a different path than
^/
for example^/area
. so that/media
doesn't get affected by the recursion of the protection zone.