|
@@ -120,6 +120,16 @@ class LuticateUsersBusiness extends LuBusiness {
|
120
|
120
|
return LuticateUsersLightDbo::fromUserDbo($user);
|
121
|
121
|
}
|
122
|
122
|
|
|
123
|
+ public static function deleteById($id)
|
|
124
|
+ {
|
|
125
|
+ if ($id != 0) {
|
|
126
|
+ $res = static::getDataAccess()->deleteById($id);
|
|
127
|
+ if (!$res)
|
|
128
|
+ self::notFound(static::getResourceName() . " not found");
|
|
129
|
+ }
|
|
130
|
+ return true;
|
|
131
|
+ }
|
|
132
|
+
|
123
|
133
|
public static function add($username, $email, $firstname, $lastname, $password)
|
124
|
134
|
{
|
125
|
135
|
$hash = self::hashPassword($password);
|