summaryrefslogtreecommitdiff
path: root/modules/organize/helpers/organize_theme.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/organize/helpers/organize_theme.php')
-rw-r--r--modules/organize/helpers/organize_theme.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/organize/helpers/organize_theme.php b/modules/organize/helpers/organize_theme.php
index e4feba2b..de812261 100644
--- a/modules/organize/helpers/organize_theme.php
+++ b/modules/organize/helpers/organize_theme.php
@@ -19,9 +19,10 @@
*/
class organize_theme {
static function head($theme) {
- // @tdo remove the addition css and organize.js (just here to test)
- $theme->script("organize_init.js");
- $theme->script("organize.js");
- $theme->css("organize.css");
+ $item = $theme->item();
+ if ($item && access::can("edit", $item) && $item->is_album()) {
+ $theme->script("organize.js");
+ $theme->css("organize.css");
+ }
}
}