Skip to content

Commit

Permalink
Fix ticket session (#814)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivandiazwm committed Jun 19, 2020
1 parent 17e9dcf commit c7af383
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
8 changes: 0 additions & 8 deletions server/controllers/ticket/check.php
Expand Up @@ -54,14 +54,6 @@ public function validations() {
}

public function handler() {

///
$session = Session::getInstance();
if($session->isTicketSession()) {
$session->closeSession();
}
///

if (Controller::isLoginMandatory()) {
throw new RequestException(ERRORS::NO_PERMISSION);
}
Expand Down
2 changes: 1 addition & 1 deletion server/controllers/ticket/create.php
Expand Up @@ -95,7 +95,7 @@ public function handler() {
///
$session = Session::getInstance();
if($session->isTicketSession()) {
$session->closeSession();
$session->clearSessionData();
}
///

Expand Down
2 changes: 1 addition & 1 deletion server/controllers/ticket/get.php
Expand Up @@ -33,7 +33,7 @@ class TicketGetController extends Controller {
public function validations() {
$session = Session::getInstance();
return [
'permission' => 'any',
'permission' => 'user',
'requestData' => [
'ticketNumber' => [
'validation' => DataValidator::validTicketNumber(),
Expand Down

0 comments on commit c7af383

Please sign in to comment.