diff options
| author | fisharebest <fisharebest@gmail.com> | 2010-05-19 17:18:31 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2010-05-19 17:18:31 +0000 |
| commit | 21a99e7d2c2e8fcdf0d9305d41808cc1581fcf56 (patch) | |
| tree | 8621750cce51a9d75aca7810da9bd384acb7a7bf | |
| parent | 8331ae0b54bb93b93e1d8b81c6ea2c682441c5a9 (diff) | |
| download | webtrees-21a99e7d2c2e8fcdf0d9305d41808cc1581fcf56.tar.gz webtrees-21a99e7d2c2e8fcdf0d9305d41808cc1581fcf56.tar.bz2 webtrees-21a99e7d2c2e8fcdf0d9305d41808cc1581fcf56.zip | |
582952 Media tab not shown in the individual page
| -rw-r--r-- | modules/lightbox/module.php | 2 | ||||
| -rw-r--r-- | modules/media/module.php | 2 |
2 files changed, 2 insertions, 2 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 diff --git a/modules/media/module.php b/modules/media/module.php index ffa131907f..efb97fbdc8 100644 --- a/modules/media/module.php +++ b/modules/media/module.php @@ -55,7 +55,7 @@ class media_WT_Module extends WT_Module implements WT_Module_Tab { // 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 |
