Merge pull request #1591 from claystation/master

BUGFIX: Initial user not set as owner
This commit is contained in:
James Cole authored and GitHub committed 2018-08-04 12:08:00 +02:00
commit c73b003de4
1 file changed
+1 -1
+1 -1
View File
@@ -58,7 +58,7 @@ class UserRepository implements UserRepositoryInterface
}
try {
$user->roles()->attach($role);
$user->roles()->attach($roleObject);
} catch (QueryException $e) {
// don't care
Log::info(sprintf('Query exception when giving user a role: %s', $e->getMessage()));