mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-03 11:08:28 +00:00
Restore and fix API tests
This commit is contained in:
@@ -66,7 +66,7 @@ trait UserGroupTrait
|
||||
if ($user instanceof User) {
|
||||
$this->user = $user;
|
||||
if (null === $user->userGroup) {
|
||||
throw new FireflyException(sprintf('User #%d has no user group.', $user->id));
|
||||
throw new FireflyException(sprintf('User #%d ("%s") has no user group.', $user->id, $user->email));
|
||||
}
|
||||
$this->userGroup = $user->userGroup;
|
||||
|
||||
|
Reference in New Issue
Block a user