Fix ticket session (#814)
This commit is contained in:
parent
17e9dcf53b
commit
c7af383ef2
|
@ -54,14 +54,6 @@ class CheckTicketController extends Controller {
|
|||
}
|
||||
|
||||
public function handler() {
|
||||
|
||||
///
|
||||
$session = Session::getInstance();
|
||||
if($session->isTicketSession()) {
|
||||
$session->closeSession();
|
||||
}
|
||||
///
|
||||
|
||||
if (Controller::isLoginMandatory()) {
|
||||
throw new RequestException(ERRORS::NO_PERMISSION);
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ class CreateController extends Controller {
|
|||
///
|
||||
$session = Session::getInstance();
|
||||
if($session->isTicketSession()) {
|
||||
$session->closeSession();
|
||||
$session->clearSessionData();
|
||||
}
|
||||
///
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ class TicketGetController extends Controller {
|
|||
public function validations() {
|
||||
$session = Session::getInstance();
|
||||
return [
|
||||
'permission' => 'any',
|
||||
'permission' => 'user',
|
||||
'requestData' => [
|
||||
'ticketNumber' => [
|
||||
'validation' => DataValidator::validTicketNumber(),
|
||||
|
|
Loading…
Reference in New Issue