This commit is contained in:
Xabi Spacebiker 2017-09-29 15:53:40 +02:00
parent e2d5e6934c
commit 81896723ca

View file

@ -1,5 +1,15 @@
<ol class="navigation">
<?php foreach ($this->container as $page) : ?>
<?php
// Admin and PM have access to the General Preferences. We need to set that menu item to point to General Preferences, instead of My Profile
$user = Application_Model_User::getCurrentUser();
$isHost = $user->isUserType(array(UTYPE_HOST));
if ($isHost && $page->getTitle() === 'Settings') {
$page->set('resource', 'usersettings');
$page->set('controller', 'user');
$page->set('action','edit-user');
}
?>
<?php if($this->navigation()->accept($page)) : ?>
<li class="top <?php if($page->isActive(true)){echo 'active';} ?>">
<?php if($page->hasPages()) : ?>
@ -29,4 +39,4 @@
</li>
<?php endif; ?>
<?php endforeach; ?>
</ol>
</ol>