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:
parent
c3860804ff
commit
69b12f4e33
2 changed files with 17 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue