|
|
@@ -6,13 +6,14 @@ class Route_UrlAction_ProjektyKosztyWstepnychRobot extends RouteBase {// TODO: U
|
|
|
|
|
|
public function handleAuth() {
|
|
|
if (!User::logged()) {
|
|
|
- throw new HttpException('Unauthorized', 401);
|
|
|
+ User::authByRequest();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public function defaultAction() {
|
|
|
// TODO: check if user is allowed to run this action
|
|
|
SE_Layout::gora();
|
|
|
+ if (1 != V::get('_print', '', $_GET)) SE_Layout::menu();
|
|
|
try {
|
|
|
$idProject = V::get('ID_PROJECT', 0, $_REQUEST, 'int');
|
|
|
$idCompany = V::get('ID_COMPANY', 0, $_REQUEST, 'int');
|
|
|
@@ -28,6 +29,7 @@ class Route_UrlAction_ProjektyKosztyWstepnychRobot extends RouteBase {// TODO: U
|
|
|
public function ofertaAdminAction() {
|
|
|
// TODO: check if user is allowed to run this action
|
|
|
SE_Layout::gora();
|
|
|
+ SE_Layout::menu();
|
|
|
try {
|
|
|
$idProject = V::get('ID_PROJECT', 0, $_REQUEST, 'int');
|
|
|
$idCompany = V::get('ID_COMPANY', 0, $_REQUEST, 'int');
|
|
|
@@ -46,6 +48,7 @@ class Route_UrlAction_ProjektyKosztyWstepnychRobot extends RouteBase {// TODO: U
|
|
|
public function ofertaDefaultAdminAction() {
|
|
|
// TODO: check if user is allowed to run this action
|
|
|
SE_Layout::gora();
|
|
|
+ SE_Layout::menu();
|
|
|
try {
|
|
|
$idProject = 0;
|
|
|
$idCompany = V::get('ID_COMPANY', 0, $_REQUEST, 'int');
|
|
|
@@ -60,6 +63,7 @@ class Route_UrlAction_ProjektyKosztyWstepnychRobot extends RouteBase {// TODO: U
|
|
|
public function ofertaAction() {
|
|
|
// TODO: check if user is allowed to run this action
|
|
|
SE_Layout::gora();
|
|
|
+ SE_Layout::menu();
|
|
|
try {
|
|
|
$idProject = V::get('ID_PROJECT', 0, $_REQUEST, 'int');
|
|
|
$idCompany = V::get('ID_COMPANY', 0, $_REQUEST, 'int');
|