diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-15 00:37:31 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-15 00:37:31 +0000 |
commit | 19e75b1e2ed73521b3cad01e55d546d3a6b55587 (patch) | |
tree | 1d47dcc05358edc81a3d94d0d684d067fe1e62c6 | |
parent | db7e60da32e3feba918cc819a1ef8fada6aec02a (diff) |
mark unauthorized exception w/ a @todo
-rw-r--r-- | core/controllers/admin.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/controllers/admin.php b/core/controllers/admin.php index b082d779..f00d3fdf 100644 --- a/core/controllers/admin.php +++ b/core/controllers/admin.php @@ -22,13 +22,13 @@ class Admin_Controller extends Controller { public function __construct() { if (!(user::active()->admin)) { - throw new Exception("Unauthorized", 401); + throw new Exception("@todo UNAUTHORIZED", 401); } // giving default is probably overkill $this->theme_name = module::get_var("core", "active_admin_theme", "default_admin"); parent::__construct(); } - + public function index() { // For now, in order not to duplicate js and css, keep the regular ("item") // theme in addition to admin theme. |