mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
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:
@ -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 =
|
||||
|
Reference in New Issue
Block a user