mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-28 01:41:14 -06:00
Merge pull request #1591 from claystation/master
BUGFIX: Initial user not set as owner
This commit is contained in:
commit
c73b003de4
@ -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