Typo, fixes #632

pull/652/head
Iglocska 2015-09-07 10:31:25 +02:00
parent e7b54c2c61
commit 291ebc8393
1 changed files with 1 additions and 1 deletions

View File

@ -2847,7 +2847,7 @@ class EventsController extends AppController {
$tag_id = $tag['Tag']['id'];
}
if (!is_numeric($id)) $id = $this->request->data['Event']['id'];
$this->Event->recurisve = -1;
$this->Event->recursive = -1;
$event = $this->Event->read(array('id', 'org', 'orgc', 'distribution'), $id);
// org should allow to tag too, so that an event that gets pushed can be tagged locally by the owning org
if ((($this->Auth->user('org') !== $event['Event']['org'] && $this->Auth->user('org') !== $event['Event']['orgc'] && $event['Event']['distribution'] == 0) || (!$this->userRole['perm_tagger'])) && !$this->_isSiteAdmin()) {