mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -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 {
|
try {
|
||||||
$user->roles()->attach($role);
|
$user->roles()->attach($roleObject);
|
||||||
} catch (QueryException $e) {
|
} catch (QueryException $e) {
|
||||||
// don't care
|
// don't care
|
||||||
Log::info(sprintf('Query exception when giving user a role: %s', $e->getMessage()));
|
Log::info(sprintf('Query exception when giving user a role: %s', $e->getMessage()));
|
||||||
|
Loading…
Reference in New Issue
Block a user