public function run()
{
+ if (!$this->controller->request->isPost) {
+ return $this->controller->redirect(['timetable/start-shift-step-one']);
+ }
/** @var Admin $userModel */
$userModel = Admin::find()->andWhere(['id' => $_SESSION['admin_id']])->one();
if (!$userModel) {
public function run()
{
+ if (!$this->controller->request->isPost) {
+ return $this->controller->redirect(['timetable/start-shift-step-one']);
+ }
/** @var AdminDesktop | null $device */
$device = isset($_COOKIE['device_key']) ? AdminDesktop::getByToken(htmlentities($_COOKIE["device_key"])) : '';
if (!$device) {