Don't allow shares with fulltext queries

Currently the query implementation cannot combine multiple/nested
fulltext searches within a query. It doesn't seem useful to have
shares based on fulltext searches, so it is disabled for now.

Issue: #446
This commit is contained in:
eikek
2021-10-25 21:27:23 +02:00
parent 6ce72e8168
commit 8fd86f9ec1
3 changed files with 28 additions and 2 deletions

View File

@ -130,6 +130,12 @@ object ShareRoutes {
"Share not found or not owner. Only the owner can update a share.",
Ident.unsafe("")
)
case OShare.ChangeResult.QueryWithFulltext =>
IdResult(
false,
"Sorry, shares with fulltext queries are currently not supported.",
Ident.unsafe("")
)
}
def mkBasicResult(r: OShare.ChangeResult, msg: => String): BasicResult =
@ -142,6 +148,11 @@ object ShareRoutes {
false,
"Share not found or not owner. Only the owner can update a share."
)
case OShare.ChangeResult.QueryWithFulltext =>
BasicResult(
false,
"Sorry, shares with fulltext queries are currently not supported."
)
}
def mkShareDetail(now: Timestamp)(r: OShare.ShareData): ShareDetail =