|
@@ -152,16 +152,7 @@ class LuticateUsersBusiness extends LuBusiness {
|
152
|
152
|
$user->setLastname($lastname);
|
153
|
153
|
$user->setSalt(self::getSalt());
|
154
|
154
|
|
155
|
|
- DB::beginTransaction();
|
156
|
|
-
|
157
|
|
- $user_id = LuticateUsersDataAccess::addId($user);
|
158
|
|
-
|
159
|
|
- if (!is_null(LuticateGroupsBusiness::getById(0))) {
|
160
|
|
- LuticateGroupsBusiness::addUser($user_id, 0);
|
161
|
|
- }
|
162
|
|
- DB::commit();
|
163
|
|
-
|
164
|
|
- return $user_id;
|
|
155
|
+ return LuticateUsersDataAccess::addId($user);
|
165
|
156
|
}
|
166
|
157
|
|
167
|
158
|
public static function edit($user_id, $firstname, $lastname, $email)
|