Fix adding a new user and don't allow to add non-local users

The user structure must provide the correct account source now.
This commit is contained in:
eikek
2021-09-07 21:59:38 +02:00
parent 8df235e9db
commit 736968b049
3 changed files with 10 additions and 4 deletions

View File

@ -50,4 +50,6 @@ object AddResult {
def fold[A](fa: Success.type => A, fb: EntityExists => A, fc: Failure => A): A =
fc(this)
}
def failure(ex: Exception): AddResult =
Failure(ex)
}