clean the links and require authorization before showing admin pages

This commit is contained in:
Felix Rabinovich
2008-12-14 04:39:22 +00:00
parent cb92d1a70d
commit 8b81731846
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -19,6 +19,9 @@
*/
class Admin_Controller extends Controller {
public function dashboard() {
if (!(user::active()->admin)) {
throw new Exception("Unauthorized", 401);
}
// giving default is probably overkill
$theme_name = module::get_var("core", "active_admin_theme", "default_admin");
// For now, in order not to duplicate js and css, keep the regular ("item")