Ignore:
Timestamp:
Apr 2, 2012, 2:14:14 PM (9 years ago)
Author:
goya
Message:

kicke les desinscrits avec is_active négatif

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/citoyen/actions/actions.class.php

    r2344 r2648  
    366366    $this->slug = $request->getParameter('slug');
    367367    $this->activation_id = $request->getParameter('activation_id');
    368    
     368    if (Doctrine::getTable('Citoyen')->findOneBySlug($this->slug)->is_active < 0) {
     369      $this->getUser()->setFlash('error', 'Ce compte a été désactivé');
     370      return;
     371    }
    369372    if ($this->getUser()->isAuthenticated())
    370373    {
Note: See TracChangeset for help on using the changeset viewer.