Corrected a typo preventing the sync from working

pull/63/head
Andras Iklody 2013-01-30 14:02:36 +01:00
parent 29295e1380
commit 4d0fe60347
1 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ class ServersController extends AppController {
public function pull($id = null, $full=false) {
// TODO should we de-activate data validation for type and category / and or mapping? Maybe other instances have other configurations that are incompatible.
if($this->Auth->User['User']['org'] != 'ADMIN') $this->redirect(array('controller' => 'servers', 'action' => 'index'));
if($this->Auth->User('org') != 'ADMIN') $this->redirect(array('controller' => 'servers', 'action' => 'index'));
if (!$this->request->is('post')) {
throw new MethodNotAllowedException();
}
@ -305,7 +305,7 @@ class ServersController extends AppController {
}
public function push($id = null, $full=false) {
if($this->Auth->User['User']['org'] != 'ADMIN') $this->redirect(array('controller' => 'servers', 'action' => 'index'));
if($this->Auth->User('org') != 'ADMIN') $this->redirect(array('controller' => 'servers', 'action' => 'index'));
if (!$this->request->is('post')) {
throw new MethodNotAllowedException();
}