summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--imagecache.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/imagecache.module b/imagecache.module
index 116faa5..76419ab 100644
--- a/imagecache.module
+++ b/imagecache.module
@@ -267,7 +267,7 @@ function imagecache_cache_private() {
$preset = check_plain(array_shift($args));
$source = implode('/', $args);
- if (user_access('view imagecache '. $preset)) {
+ if (user_access('view imagecache '. $preset) && !in_array(-1, module_invoke_all('file_download', $source))) {
_imagecache_cache($preset, $source);
}
else {