comanage-dev - [comanage-dev] r339 - registry/trunk/app/View/Elements
Subject: COmanage Developers List
List archive
- From:
- To:
- Subject: [comanage-dev] r339 - registry/trunk/app/View/Elements
- Date: Wed, 15 Aug 2012 04:05:21 -0400
Author: marie
Date: 2012-08-15 04:05:21 -0400 (Wed, 15 Aug 2012)
New Revision: 339
Modified:
registry/trunk/app/View/Elements/dropMenu.ctp
Log:
co409 hides platform menu when not admin
Modified: registry/trunk/app/View/Elements/dropMenu.ctp
===================================================================
--- registry/trunk/app/View/Elements/dropMenu.ctp 2012-08-15 07:37:34
UTC (rev 338)
+++ registry/trunk/app/View/Elements/dropMenu.ctp 2012-08-15 08:05:21
UTC (rev 339)
@@ -154,40 +154,42 @@
</li>
<!-- Platform Dropdown -->
- <li class="dropMenu">
- <a>
- <span>
- <?php print _txt('me.platform');?>
- </span>
- <span class="ui-icon ui-icon-carat-1-s"></span>
- </a>
- <ul>
- <li>
- <?php
- $params = array('controller' => 'cos',
- 'action' => 'index'
- );
- print $this->Html->link(_txt('ct.cos.pl'), $params);
- ?>
- </li>
- <li>
- <?php
- $params = array('controller' => 'organizations',
- 'action' => 'index'
- );
- print $this->Html->link(_txt('ct.organizations.pl'), $params);
- ?>
- </li>
- <li>
- <?php
- $params = array('controller' => 'cmp_enrollment_configurations',
- 'action' => 'select'
- );
$this->Html->link(_txt('ct.cmp_enrollment_configurations.pl'), $params);
- ?>
- </li>
- </ul>
- </li>
+ <?php if($permissions['menu']['admin']): ?>
+ <li class="dropMenu">
+ <a>
+ <span>
+ <?php print _txt('me.platform');?>
+ </span>
+ <span class="ui-icon ui-icon-carat-1-s"></span>
+ </a>
+ <ul>
+ <li>
+ <?php
+ $params = array('controller' => 'cos',
+ 'action' => 'index'
+ );
+ print $this->Html->link(_txt('ct.cos.pl'), $params);
+ ?>
+ </li>
+ <li>
+ <?php
+ $params = array('controller' => 'organizations',
+ 'action' => 'index'
+ );
+ print $this->Html->link(_txt('ct.organizations.pl'), $params);
+ ?>
+ </li>
+ <li>
+ <?php
+ $params = array('controller' =>
'cmp_enrollment_configurations',
+ 'action' => 'select'
+ );
$this->Html->link(_txt('ct.cmp_enrollment_configurations.pl'), $params);
+ ?>
+ </li>
+ </ul>
+ </li>
+ <?php endif; ?>
<!-- Account Dropdown -->
<li class="dropMenu">
- [comanage-dev] r339 - registry/trunk/app/View/Elements, svnlog, 08/15/2012
Archive powered by MHonArc 2.6.16.