Skip to content

Commit d6a0d95

Browse files
author
Artur Schroeder
committed
fix
1 parent 34ac60f commit d6a0d95

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/PullUpService/Handler/SubmitTrainingPullUpHandler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function handle(SubmitTrainingPullUpCommand $command)
3232
file_put_contents($this->cachePath . '/training.json', json_encode($data));
3333
}
3434

35-
if (!$this->user->isFirstFormFilled()) {
35+
if (!$this->user->isTrainingPullUpFirstFormFilled()) {
3636
throw new \Exception('DOMAIN.FIRST_FORM_NOT_FILLED');
3737
}
3838

web/app_dev.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// Feel free to remove this, extend it, or make something more sophisticated.
1313
if (isset($_SERVER['HTTP_CLIENT_IP'])
1414
|| isset($_SERVER['HTTP_X_FORWARDED_FOR'])
15-
|| !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1', '192.168.0.18'], true) || PHP_SAPI === 'cli-server')
15+
|| !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1', '192.168.0.11'], true) || PHP_SAPI === 'cli-server')
1616
) {
1717
header('HTTP/1.0 403 Forbidden');
1818
exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');

0 commit comments

Comments
 (0)