Fix comments

This commit is contained in:
Xabi Spacebiker 2017-09-29 15:55:33 +02:00
parent 81896723ca
commit ff7ef7cdf4

View file

@ -1,7 +1,10 @@
<ol class="navigation"> <ol class="navigation">
<?php foreach ($this->container as $page) : ?> <?php foreach ($this->container as $page) : ?>
<?php <?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 // Host users do not have access to the General Preferences
// therefor we need to manually change the page parameters
// to point to the first allowed item in the Preferences
// which is 'My Profile' page
$user = Application_Model_User::getCurrentUser(); $user = Application_Model_User::getCurrentUser();
$isHost = $user->isUserType(array(UTYPE_HOST)); $isHost = $user->isUserType(array(UTYPE_HOST));
if ($isHost && $page->getTitle() === 'Settings') { if ($isHost && $page->getTitle() === 'Settings') {