summaryrefslogtreecommitdiff
path: root/modules/lightbox
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-05-19 17:18:31 +0000
committerfisharebest <fisharebest@gmail.com>2010-05-19 17:18:31 +0000
commit21a99e7d2c2e8fcdf0d9305d41808cc1581fcf56 (patch)
tree8621750cce51a9d75aca7810da9bd384acb7a7bf /modules/lightbox
parent8331ae0b54bb93b93e1d8b81c6ea2c682441c5a9 (diff)
downloadwebtrees-21a99e7d2c2e8fcdf0d9305d41808cc1581fcf56.tar.gz
webtrees-21a99e7d2c2e8fcdf0d9305d41808cc1581fcf56.tar.bz2
webtrees-21a99e7d2c2e8fcdf0d9305d41808cc1581fcf56.zip
582952 Media tab not shown in the individual page
Diffstat (limited to 'modules/lightbox')
-rw-r--r--modules/lightbox/module.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/lightbox/module.php b/modules/lightbox/module.php
index 05177532d6..1398e06afd 100644
--- a/modules/lightbox/module.php
+++ b/modules/lightbox/module.php
@@ -71,7 +71,7 @@ class lightbox_WT_Module extends WT_Module implements WT_Module_Config, WT_Modul
// Implement WT_Module_Tab
public function hasTabContent() {
global $MULTI_MEDIA;
- return $MULTI_MEDIA && $this->get_media_count()>0;
+ return $MULTI_MEDIA && (WT_USER_CAN_EDIT || $this->get_media_count()>0);
}
// Implement WT_Module_Tab