summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStella Power2009-01-03 17:18:18 (GMT)
committer Stella Power2009-01-03 17:18:18 (GMT)
commit3d64ab7be83050be8dd464e9a46ce7b4e539e7a1 (patch)
tree90a9a45b4d24dd6186aed131ad302b6c6add36e8
parentb93404f83bf46db4b6d4ba82ad0220dfd789ae3a (diff)
added check for "view original images" permission for download feature.
-rw-r--r--lightbox2.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/lightbox2.module b/lightbox2.module
index 2916ff0..f8b2413 100644
--- a/lightbox2.module
+++ b/lightbox2.module
@@ -680,7 +680,7 @@ function lightbox2_add_files() {
);
// Only supply these if the user has the correct permissions.
- if (user_access('download original image')) {
+ if (user_access('download original image') && user_access('view original images')) {
$js_settings['download_link_text'] = check_plain(variable_get('lightbox2_download_link_text', 'Download Original'));
$js_settings['node_link_separator'] = check_plain(variable_get('lightbox2_node_link_separator', ' - '));
}