Fix for setting initial user as Owner

This commit is contained in:
Clemens Wijnekus 2018-08-04 00:27:28 +02:00
parent dd49926cc2
commit de12db5f05

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