Added automated disabling of admin and development menu items (at least the ones that are explicitly added to those sections of the menu).

git-svn-id: file:///svn-source/pmgr/branches/pre_0.1_work_20090819@765 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-08-24 20:03:05 +00:00
parent 63c95da9f3
commit c261735197
3 changed files with 48 additions and 47 deletions

View File

@@ -204,10 +204,10 @@ class AccountsController extends AppController {
$this->addSideMenuLink('New Ledger',
array('action' => 'newledger', $id), null,
'ACTION');
'ACTION', $this->admin_area);
$this->addSideMenuLink('Collected',
array('action' => 'collected', $id), null,
'ACTION');
'ACTION', $this->admin_area);
// Prepare to render
$title = 'Account: ' . $account['Account']['name'];