CC-2654: Remove abilities that don't apply to SaaS

- not displaying manage folder option when saas is true
- not displaying record and rebroadcast section when saas is true
This commit is contained in:
James 2011-09-02 15:24:35 -04:00
parent ce2ce0a13a
commit 903c3474c7
7 changed files with 179 additions and 117 deletions

View file

@ -1,3 +1,9 @@
<?php
$isSaas = true;
if(Application_Model_Preference::GetPlanLevel() == "disabled"){
$isSaas = false;
}
?>
<ul id="nav">
<?php foreach ($this->container as $page) : ?>
<?php if($this->navigation()->accept($page)) : ?>
@ -7,7 +13,10 @@
<span class="down"><?php echo $page->getLabel(); ?></span>
</a>
<ul class="sub">
<?php foreach ($page->getPages() as $sub) : ?>
<?php foreach ($page->getPages() as $sub) :
if($isSaas && $sub->getLabel() == "Manage Media Folders"){
continue;
} ?>
<li>
<a href="<?php echo $sub->getHref(); ?>"><?php echo $sub->getLabel(); ?></a>
</li>