Commit f94840db authored by hlarget's avatar hlarget 👹
Browse files

Merge branch '6-menu' into 'master'

Resolve "Menu"

Closes #6

See merge request !7
parents ddb0b331 f1a63ac3
......@@ -31,9 +31,10 @@ class UserProvider implements UserProviderInterface, OAuthAwareUserProviderInter
$user->setUsername($data["nickname"]);
$user->setEmail($data['name']);
$user->setSubscriptions([(new SubscriptionPermission())->setCompany($data[self::AUTH0_METADATA_PATH]['company'])->setPermissions(["ROLE_USER"])->setSettings([])]);
$user->setRoles(["ROLE_USER"]);
$user->setPicture($data['picture']);
$user->setCompanies([$data[self::AUTH0_METADATA_PATH]['company']]);
$user->setRoles($data["http://konnect/roles"]);
$user->addRole("ROLE_USER");
return $user;
}
......
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