Fix comments
This commit is contained in:
parent
81896723ca
commit
ff7ef7cdf4
1 changed files with 4 additions and 1 deletions
|
@ -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') {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue