Skip to content

Commit

Permalink
adding a param for admin modules
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Jan 28, 2010
1 parent 2c96cd7 commit 256ddb4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions infinitas/management/models/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Module extends ManagementAppModel{
)
);

function getModules($position = null){
function getModules($position = null, $admin){
if (!$position) {
return array();
}
Expand All @@ -58,7 +58,8 @@ function getModules($position = null){
'Module.show_heading'
),
'conditions' => array(
'Position.name' => $position
'Position.name' => $position,
'Module.admin' => $admin
),
'contain' => array(
'Position' => array(
Expand Down

0 comments on commit 256ddb4

Please sign in to comment.