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:
@@ -279,10 +279,8 @@ class AppController extends Controller {
|
||||
*/
|
||||
|
||||
function beforeFilter() {
|
||||
$this->params['dev'] =
|
||||
(!empty($this->params['dev_route']));
|
||||
$this->params['admin'] =
|
||||
(!empty($this->params['admin_route']) || !empty($this->params['dev_route']));
|
||||
$this->params['dev'] = $this->Option->enabled('dev');
|
||||
$this->params['admin'] = $this->Option->enabled('admin');
|
||||
|
||||
if (!$this->params['dev'])
|
||||
Configure::write('debug', '0');
|
||||
|
||||
Reference in New Issue
Block a user