| ... | ... |
@@ -38,18 +38,11 @@ class CookiePolicyAsync extends \Frontend |
| 38 | 38 |
\Controller::setStaticUrls(); |
| 39 | 39 |
\Controller::loadLanguageFile('default');
|
| 40 | 40 |
|
| 41 |
- $this->import('FrontendUser', 'User');
|
|
| 42 | 41 |
parent::__construct(); |
| 43 |
- |
|
| 44 |
- // Check whether a user is logged in |
|
| 45 |
- define('BE_USER_LOGGED_IN', $this->getLoginStatus('BE_USER_AUTH'));
|
|
| 46 |
- define('FE_USER_LOGGED_IN', $this->getLoginStatus('FE_USER_AUTH'));
|
|
| 47 | 42 |
} |
| 48 | 43 |
|
| 49 | 44 |
public function run() |
| 50 | 45 |
{
|
| 51 |
- $this->User->authenticate(); |
|
| 52 |
- |
|
| 53 | 46 |
$strBuffer = ''; |
| 54 | 47 |
switch(\Input::get('do'))
|
| 55 | 48 |
{
|
| ... | ... |
@@ -72,15 +65,6 @@ class CookiePolicyAsync extends \Frontend |
| 72 | 65 |
exit; |
| 73 | 66 |
} |
| 74 | 67 |
|
| 75 |
- protected function authorizedOrDie() |
|
| 76 |
- {
|
|
| 77 |
- if (!FE_USER_LOGGED_IN) |
|
| 78 |
- {
|
|
| 79 |
- header('HTTP/1.1 403 Forbidden');
|
|
| 80 |
- die('Community: User not logged in');
|
|
| 81 |
- } |
|
| 82 |
- } |
|
| 83 |
- |
|
| 84 | 68 |
protected function preconditionFailed() |
| 85 | 69 |
{
|
| 86 | 70 |
header('HTTP/1.1 412 Precondition Failed');
|