|
|
@@ -11,13 +11,13 @@ Lib::loadClass('RouteBase');
|
|
|
class Route_Debug extends RouteBase {
|
|
|
|
|
|
public function handleAuth() {
|
|
|
- if (!User::logged()) {
|
|
|
+ if (!User::logged()) {
|
|
|
throw new HttpException('Unauthorized', 401);
|
|
|
- }
|
|
|
- if (!User::hasAccess('dbg')) {// User::get('ADM_ADMIN_LEVEL') == 0
|
|
|
+ }
|
|
|
+ if (!User::hasAccess('dbg')) {// User::get('ADM_ADMIN_LEVEL') == 0
|
|
|
throw new HttpException('Unauthorized - required dbg access', 401);
|
|
|
- }
|
|
|
- }
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
public function defaultAction() {
|
|
|
session_write_close();
|
|
|
@@ -25,8 +25,8 @@ class Route_Debug extends RouteBase {
|
|
|
}
|
|
|
|
|
|
public function defaultView($flashMsg = '') {
|
|
|
- UI::gora();
|
|
|
- UI::menu();
|
|
|
+ UI::gora();
|
|
|
+ UI::menu();
|
|
|
UI::setTitle("Debug");
|
|
|
try {
|
|
|
echo UI::h('h1', [], [
|