*/
/**
- * Description of ContactsController
+ * Controller de création, édition, et suivit de contacts
*
* @author rdubourget
*/
* retourne true si on utilise un ie <= 8
*
*/
- public function isOldInternetExplorer() {
+ private function isOldInternetExplorer() {
preg_match('/MSIE (.*?);/', $_SERVER['HTTP_USER_AGENT'], $matches);
if (count($matches) > 1) {
}
/**
- * fonction accessible uniquement par les user
+ * fonction accessible uniquement par les users actifs
* @throws NotFoundException
*/
public function edit($id) {
*
*/
public function changeEtatAjax() {
+ $this->isActif();
if ($this->request->is('Ajax')) {
$this->autoRender = false;
*
*/
public function changeUserAjax() {
-
+ $this->isActif();
if ($this->request->is('Ajax')) {
$this->autoRender = false;
* supression d'une personne a cahrge
*/
public function supprimerPersonne() {
- $this->minReferent();
+
+ $this->isActif();
if ($this->request->is('Ajax')) {
$this->autoRender = false;
$this->loadModel('Personneacharge');
* supression d'une personne a cahrge
*/
public function accepterContact() {
+ $this->isActif();
$this->minReferent();
if ($this->request->is('Ajax')) {
$this->autoRender = false;
* supression d'une personne a cahrge
*/
public function accepterDelegue() {
+ $this->isActif();
$this->minReferent();
if ($this->request->is('Ajax')) {
$this->autoRender = false;
*
*/
public function changeDelegueAjax() {
-
+ $this->isActif();
+ $this->minReferent();
if ($this->request->is('Ajax')) {