Commit 4561d453 authored by Alexis Ragot's avatar Alexis Ragot

fix syntax bug to add user roles

parent 74126c8d
......@@ -143,7 +143,7 @@ class userAccount
$userAccountId = $this->addUserAccount($userAccount);
if (is_array($userAccount->roles && !empty($userAccount->roles))) {
if (is_array($userAccount->roles) && !empty($userAccount->roles)) {
foreach ($userAccount->roles as $roleId) {
\laabs::callService("auth/roleMember/create", $roleId, $userAccountId);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment