Added users and groups and a couple basic options (dev & admin) for testing. Since dev/admin is now a database option, the special routing mechanism has been removed.

git-svn-id: file:///svn-source/pmgr/branches/pre_0.1_work_20090819@801 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-08-28 04:47:33 +00:00
parent a66024c889
commit 43c957baa2
7 changed files with 23 additions and 327 deletions

View File

@@ -12,7 +12,7 @@ class Option extends AppModel {
static $option_set = array();
function getAll($name) {
$this->prClassLevel(30);
/* $this->prClassLevel(30); */
/* //$this->OptionValue->prClassLevel(30); */
/* $this->Group->Membership->prClassLevel(30); */
/* $this->OptionValue->SiteOption->prClassLevel(30); */
@@ -64,4 +64,13 @@ class Option extends AppModel {
return $this->prReturn($values[0]);
}
function enabled($name) {
$val = $this->get($name);
return (!empty($val));
}
function disabled($name) {
return (!$this->enabled($name));
}
}