Merge pull request #1591 from claystation/master

BUGFIX: Initial user not set as owner
This commit is contained in:
James Cole 2018-08-04 12:08:00 +02:00 committed by GitHub
commit c73b003de4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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()));