Fix ticket session (#814)

This commit is contained in:
Ivan Diaz 2020-06-19 14:36:49 -03:00 committed by GitHub
parent 17e9dcf53b
commit c7af383ef2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 10 deletions

View File

@ -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);
}

View File

@ -95,7 +95,7 @@ class CreateController extends Controller {
///
$session = Session::getInstance();
if($session->isTicketSession()) {
$session->closeSession();
$session->clearSessionData();
}
///

View File

@ -33,7 +33,7 @@ class TicketGetController extends Controller {
public function validations() {
$session = Session::getInstance();
return [
'permission' => 'any',
'permission' => 'user',
'requestData' => [
'ticketNumber' => [
'validation' => DataValidator::validTicketNumber(),