src/Controller/DevelopersController.php 1 location
|
@@ 82-90 (lines=9) @@
|
| 79 |
|
['params' => ['class' => $flash_class]] |
| 80 |
|
); |
| 81 |
|
} |
| 82 |
|
} else { |
| 83 |
|
$flash_class = 'alert alert-error'; |
| 84 |
|
$this->Flash->default( |
| 85 |
|
'We were not able to authenticate you.' |
| 86 |
|
. ' Please try again later', |
| 87 |
|
['params' => ['class' => $flash_class]] |
| 88 |
|
); |
| 89 |
|
|
| 90 |
|
$this->redirect('/'); |
| 91 |
|
return; |
| 92 |
|
} |
| 93 |
|
|
src/Controller/GithubController.php 1 location
|
@@ 460-469 (lines=10) @@
|
| 457 |
|
*/ |
| 458 |
|
public function sync_issue_status() |
| 459 |
|
{ |
| 460 |
|
if (! Configure::read('CronDispatcher')) { |
| 461 |
|
$flash_class = 'alert alert-error'; |
| 462 |
|
$this->Flash->default( |
| 463 |
|
'Unauthorised action! This action is not available on Web interface', |
| 464 |
|
['params' => ['class' => $flash_class]] |
| 465 |
|
); |
| 466 |
|
|
| 467 |
|
$this->redirect('/'); |
| 468 |
|
return; |
| 469 |
|
} |
| 470 |
|
|
| 471 |
|
$this->autoRender = false; |
| 472 |
|
$reportsTable = TableRegistry::get('Reports'); |