Merge branch 'hotfix-2.3.49'

pull/400/merge v2.3.49
iglocska 2015-02-16 09:00:49 +01:00
commit 32ea0ef520
1 changed files with 0 additions and 2 deletions

View File

@ -1814,8 +1814,6 @@ class EventsController extends AppController {
if (!$this->Auth->user('id')) {
throw new UnauthorizedException('You have to be logged in to do that.');
}
$user = $this->checkAuthUser($this->Auth->user('authkey'));
if (!$user) throw new UnauthorizedException('This authentication key is not authorized to be used for exports. Contact your administrator.');
$user = array('User' => $this->Auth->user());
$user['User']['siteAdmin'] = $this->_isSiteAdmin();
}