2016-10-15 02:59:11 +02:00
|
|
|
<?php
|
|
|
|
use Respect\Validation\Validator as DataValidator;
|
|
|
|
|
|
|
|
class GetTicketStaffController extends Controller {
|
|
|
|
const PATH = '/get-tickets';
|
2017-02-08 19:09:15 +01:00
|
|
|
const METHOD = 'POST';
|
2016-10-15 02:59:11 +02:00
|
|
|
|
|
|
|
public function validations() {
|
|
|
|
return [
|
|
|
|
'permission' => 'staff_1',
|
|
|
|
'requestData' => []
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
public function handler() {
|
|
|
|
$user = Controller::getLoggedUser();
|
|
|
|
Response::respondSuccess($user->sharedTicketList->toArray());
|
|
|
|
}
|
|
|
|
}
|