mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-27 09:21:04 -06:00
Fix for setting initial user as Owner
This commit is contained in:
parent
dd49926cc2
commit
de12db5f05
@ -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()));
|
||||
|
Loading…
Reference in New Issue
Block a user