Update botserver: Add bot access control with org membership check (#499)
This commit is contained in:
parent
7d2d8a5674
commit
75ca8cf513
1 changed files with 44 additions and 18 deletions
|
|
@ -388,6 +388,32 @@ fn is_kb_extension(key: &str) -> bool {
|
||||||
|| lower.ends_with(".odt")
|
|| lower.ends_with(".odt")
|
||||||
|| lower.ends_with(".ods")
|
|| lower.ends_with(".ods")
|
||||||
|| lower.ends_with(".odp")
|
|| lower.ends_with(".odp")
|
||||||
|
|| lower.ends_with(".yaml")
|
||||||
|
|| lower.ends_with(".yml")
|
||||||
|
|| lower.ends_with(".toml")
|
||||||
|
|| lower.ends_with(".jsonl")
|
||||||
|
|| lower.ends_with(".tsv")
|
||||||
|
|| lower.ends_with(".log")
|
||||||
|
|| lower.ends_with(".cfg")
|
||||||
|
|| lower.ends_with(".ini")
|
||||||
|
|| lower.ends_with(".conf")
|
||||||
|
|| lower.ends_with(".env")
|
||||||
|
|| lower.ends_with(".svg")
|
||||||
|
|| lower.ends_with(".py")
|
||||||
|
|| lower.ends_with(".rs")
|
||||||
|
|| lower.ends_with(".js")
|
||||||
|
|| lower.ends_with(".ts")
|
||||||
|
|| lower.ends_with(".sh")
|
||||||
|
|| lower.ends_with(".sql")
|
||||||
|
|| lower.ends_with(".css")
|
||||||
|
|| lower.ends_with(".ics")
|
||||||
|
|| lower.ends_with(".vcf")
|
||||||
|
|| lower.ends_with(".eml")
|
||||||
|
|| lower.ends_with(".rst")
|
||||||
|
|| lower.ends_with(".adoc")
|
||||||
|
|| lower.ends_with(".properties")
|
||||||
|
|| lower.ends_with(".graphql")
|
||||||
|
|| lower.ends_with(".proto")
|
||||||
}
|
}
|
||||||
|
|
||||||
struct KbPathParts {
|
struct KbPathParts {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue