Author: sevein
Date: Tue Aug 14 15:36:21 2012
New Revision: 12110

Log:
Make sure that the user is not deactivated when self-editing, fixes 2402

Modified:
   trunk/apps/qubit/modules/user/actions/editAction.class.php

Modified: trunk/apps/qubit/modules/user/actions/editAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/user/actions/editAction.class.php  Tue Aug 14 
15:12:53 2012        (r12109)
+++ trunk/apps/qubit/modules/user/actions/editAction.class.php  Tue Aug 14 
15:36:21 2012        (r12110)
@@ -287,7 +287,10 @@
 
       if ($this->form->isValid())
       {
-        $this->resource->active = 0;
+        if ($this->resource !== sfContext::getInstance()->getUser()->user)
+        {
+          $this->resource->active = 0;
+        }
 
         $this->processForm();
 

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to