Link shares to the user, not the collective

The user is required when searching because of folders (sadly), so the
share is connected to the user.
This commit is contained in:
eikek
2021-10-23 23:29:36 +02:00
parent 9009ebcb39
commit 2ac0b84e52
17 changed files with 268 additions and 110 deletions

View File

@ -8,6 +8,7 @@ package docspell.common
import io.circe._
/** The collective and user name. */
case class AccountId(collective: Ident, user: Ident) {
def asString =
if (collective == user) user.id