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

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