Browse Source

can edit anonymous

tags/0.1.0
Robin Thoni 9 years ago
parent
commit
6d62058a0a
1 changed files with 5 additions and 7 deletions
  1. 5
    7
      src/Auth/Business/LuticateUsersBusiness.php

+ 5
- 7
src/Auth/Business/LuticateUsersBusiness.php View File

@@ -160,13 +160,11 @@ class LuticateUsersBusiness extends LuBusiness {
160 160
 
161 161
     public static function edit($user_id, $firstname, $lastname, $email)
162 162
     {
163
-        if ($user_id != 0) {
164
-            $user = self::checkUserId($user_id);
165
-            $user->setEmail($email);
166
-            $user->setFirstname($firstname);
167
-            $user->setLastname($lastname);
168
-            LuticateUsersDataAccess::editById($user_id, $user);
169
-        }
163
+        $user = self::checkUserId($user_id);
164
+        $user->setEmail($email);
165
+        $user->setFirstname($firstname);
166
+        $user->setLastname($lastname);
167
+        LuticateUsersDataAccess::editById($user_id, $user);
170 168
         return true;
171 169
     }
172 170
 

Loading…
Cancel
Save