<?php
-/* This file is part of Syj, Copyright (c) 2010 Arnaud Renevier,
+/* This file is part of Syj, Copyright (c) 2010-2011 Arnaud Renevier,
and is published under the AGPL license. */
class PathController extends Zend_Controller_Action
$formData = $this->_helper->SyjPostData->getPostData('Syj_Form_Geom');
$path = new Syj_Model_Path();
- $user = $this->_helper->SyjSession->user();
+ $user = $this->_helper->SyjUserManager->current();
if (!$user and !$formData["geom_accept"]) {
throw new Syj_Exception_Request();
}
}
}
- $user = $this->_helper->SyjSession->user();
+ $user = $this->_helper->SyjUserManager->current();
if (!$path->isCreator($user)) {
throw new Syj_Exception_Forbidden();
}