comanage-dev - [comanage-dev] r521 - registry/trunk/app/View/Layouts
Subject: COmanage Developers List
List archive
- From:
- To:
- Subject: [comanage-dev] r521 - registry/trunk/app/View/Layouts
- Date: Tue, 4 Jun 2013 14:39:45 -0400
- Authentication-results: sfpop-ironport04.merit.edu; dkim=neutral (message not signed) header.i=none
Author: marie
Date: 2013-06-04 14:39:45 -0400 (Tue, 04 Jun 2013)
New Revision: 521
Modified:
registry/trunk/app/View/Layouts/default.ctp
Log:
co139 verifies search permission
Modified: registry/trunk/app/View/Layouts/default.ctp
===================================================================
--- registry/trunk/app/View/Layouts/default.ctp 2013-06-04 03:40:26 UTC (rev
520)
+++ registry/trunk/app/View/Layouts/default.ctp 2013-06-04 18:39:45 UTC (rev
521)
@@ -470,16 +470,18 @@
</ul>
<?php // Advanced Search (CO-139)
- // Get a pointer to our model
- $model = $this->name;
- if(!empty($this->plugin)) {
- $fileLocation = APP . "Plugin/" . $this->plugin . "/View/" .
$model . "/search.inc";
- if(file_exists($fileLocation))
- include($fileLocation);
- } else {
- $fileLocation = APP . "View/" . $model . "/search.inc";
- if(file_exists($fileLocation))
- include($fileLocation);
+ if($permissions['search']) {
+ // Get a pointer to our model
+ $model = $this->name;
+ if(!empty($this->plugin)) {
+ $fileLocation = APP . "Plugin/" . $this->plugin . "/View/"
. $model . "/search.inc";
+ if(file_exists($fileLocation))
+ include($fileLocation);
+ } else {
+ $fileLocation = APP . "View/" . $model . "/search.inc";
+ if(file_exists($fileLocation))
+ include($fileLocation);
+ }
}
?>
</div>
- [comanage-dev] r521 - registry/trunk/app/View/Layouts, svnlog, 06/04/2013
Archive powered by MHonArc 2.6.16.