diff options
| author | Greg Roach <fisharebest@gmail.com> | 2015-03-07 11:33:29 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2015-03-08 16:23:35 +0000 |
| commit | 4b9ff166b3342695f2a94855b7a33368e6d55c35 (patch) | |
| tree | 0a1c31662df08206dbd7d04fe6983f438f4e6877 /app/Module/SourcesTabModule.php | |
| parent | 1784a549f5382ce854e7a2b015c1367735d8b2e0 (diff) | |
| download | webtrees-4b9ff166b3342695f2a94855b7a33368e6d55c35.tar.gz webtrees-4b9ff166b3342695f2a94855b7a33368e6d55c35.tar.bz2 webtrees-4b9ff166b3342695f2a94855b7a33368e6d55c35.zip | |
Remove constants, to improve multi-tree handling
Diffstat (limited to 'app/Module/SourcesTabModule.php')
| -rw-r--r-- | app/Module/SourcesTabModule.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/Module/SourcesTabModule.php b/app/Module/SourcesTabModule.php index b12fac059f..e531a47e7f 100644 --- a/app/Module/SourcesTabModule.php +++ b/app/Module/SourcesTabModule.php @@ -39,7 +39,9 @@ class SourcesTabModule extends Module implements ModuleTabInterface { /** {@inheritdoc} */ public function hasTabContent() { - return WT_USER_CAN_EDIT || $this->getFactsWithSources(); + global $WT_TREE; + + return Auth::isEditor($WT_TREE) || $this->getFactsWithSources(); } /** {@inheritdoc} */ |
