semantic_index: Disable embeddings index for non-staff (#19618)

This PR disables the embeddings index for non-staff users.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-10-23 12:34:51 -04:00 committed by GitHub
parent c3860804ff
commit 69b12f4e33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 17 additions and 0 deletions

View file

@ -336,6 +336,11 @@ mod tests {
init_test(cx);
cx.update(|cx| {
// This functionality is staff-flagged.
cx.update_flags(true, vec![]);
});
let temp_dir = tempfile::tempdir().unwrap();
let mut semantic_index = SemanticDb::new(