mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-27 10:13:05 +01:00
10 lines
425 B
Python
10 lines
425 B
Python
"""Script which updates Vespa to align with the access described in Postgres.
|
|
Should be run when a user who has docs already indexed switches over to the new
|
|
access control system. This allows them to not have to re-index all documents.
|
|
NOTE: this is auto-run on server startup, so should not be necessary in most cases."""
|
|
from danswer.utils.acl import set_acl_for_vespa
|
|
|
|
|
|
if __name__ == "__main__":
|
|
set_acl_for_vespa()
|