summaryrefslogtreecommitdiff
path: root/app/Module/PageMenuModule.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2015-03-07 11:33:29 +0000
committerGreg Roach <fisharebest@gmail.com>2015-03-08 16:23:35 +0000
commit4b9ff166b3342695f2a94855b7a33368e6d55c35 (patch)
tree0a1c31662df08206dbd7d04fe6983f438f4e6877 /app/Module/PageMenuModule.php
parent1784a549f5382ce854e7a2b015c1367735d8b2e0 (diff)
downloadwebtrees-4b9ff166b3342695f2a94855b7a33368e6d55c35.tar.gz
webtrees-4b9ff166b3342695f2a94855b7a33368e6d55c35.tar.bz2
webtrees-4b9ff166b3342695f2a94855b7a33368e6d55c35.zip
Remove constants, to improve multi-tree handling
Diffstat (limited to 'app/Module/PageMenuModule.php')
-rw-r--r--app/Module/PageMenuModule.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Module/PageMenuModule.php b/app/Module/PageMenuModule.php
index 77022642ca..fe793d4b90 100644
--- a/app/Module/PageMenuModule.php
+++ b/app/Module/PageMenuModule.php
@@ -37,14 +37,14 @@ class PageMenuModule extends Module implements ModuleMenuInterface {
/** {@inheritdoc} */
public function getMenu() {
- global $controller;
+ global $controller, $WT_TREE;
$menu = null;
if (empty($controller)) {
return null;
}
- if (WT_USER_CAN_EDIT && method_exists($controller, 'getEditMenu')) {
+ if (Auth::isEditor($WT_TREE) && method_exists($controller, 'getEditMenu')) {
$menu = $controller->getEditMenu();
}
return $menu;