After fixing some problems in the secure files modul and hacking the saphire core. I can now secure folders in the asset folder. But that breaks the image_gallery modul. I won't resize the thumbnails anymore. For some reason the resampled file just has the original size.
So my solution is not really working. I have a security modul, that only securs on a per user base. And only after making modifications to the core of the cms. And I have a image gallery that can't show thumbnails.
There has to be another way. What am I missing? How do you secure your files in silverstripe, if you don't won't them publicly avalible?