mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-03 13:19:16 +00:00
Only show search in web app nav pane if user has documents indexed
This commit is contained in:
@@ -371,8 +371,8 @@ class EntryAdapters:
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
async def user_has_entries(user: KhojUser):
|
||||
return await Entry.objects.filter(user=user).aexists()
|
||||
def user_has_entries(user: KhojUser):
|
||||
return Entry.objects.filter(user=user).exists()
|
||||
|
||||
@staticmethod
|
||||
async def adelete_entry_by_file(user: KhojUser, file_path: str):
|
||||
|
||||
Reference in New Issue
Block a user