mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +00:00
Bookmark queries scoped to user or collective
This commit is contained in:
@ -53,7 +53,7 @@ object ClientSettingsRoutes {
|
||||
data <- backend.clientSettings.loadUser(clientId, user.account)
|
||||
res <- data match {
|
||||
case Some(d) => Ok(d.settingsData)
|
||||
case None => NotFound()
|
||||
case None => Ok(Map.empty[String, String])
|
||||
}
|
||||
} yield res
|
||||
|
||||
@ -80,7 +80,7 @@ object ClientSettingsRoutes {
|
||||
data <- backend.clientSettings.loadCollective(clientId, user.account)
|
||||
res <- data match {
|
||||
case Some(d) => Ok(d.settingsData)
|
||||
case None => NotFound()
|
||||
case None => Ok(Map.empty[String, String])
|
||||
}
|
||||
} yield res
|
||||
|
||||
|
Reference in New Issue
Block a user