Typo in UsersController fixed

pull/217/head
iglocska 2013-06-11 10:37:56 +02:00
parent 78b3a1c0ed
commit 17b570ec1f
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ class UsersController extends AppController {
throw new NotFoundException(__('Invalid user'));
}
$this->set('user', $this->User->read(null, $id));
if (!$this->_isSiteADmin && !($this->_isAdmin() && $this->Auth->user('org') == $this->User->data['User']['org'])) throw new MethodNotAllowedException();
if (!$this->_isSiteAdmin() && !($this->_isAdmin() && $this->Auth->user('org') == $this->User->data['User']['org'])) throw new MethodNotAllowedException();
$temp = $this->User->field('invited_by');
$this->set('user2', $this->User->read(null, $temp));
}