Changeset 2650


Ignore:
Timestamp:
Apr 4, 2012, 12:32:01 AM (9 years ago)
Author:
goya
Message:

Possibilité de désactiver un compte

File:
1 edited

Legend:

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

    r2649 r2650  
    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.