mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-26 16:01:09 +02:00
quick fix for google doc sync
This commit is contained in:
parent
490a68773b
commit
eb0e20b9e4
@ -110,8 +110,13 @@ def _get_permissions_from_slim_doc(
|
|||||||
elif permission_type == "group":
|
elif permission_type == "group":
|
||||||
group_emails.add(permission["emailAddress"])
|
group_emails.add(permission["emailAddress"])
|
||||||
elif permission_type == "domain" and company_domain:
|
elif permission_type == "domain" and company_domain:
|
||||||
if permission["domain"] == company_domain:
|
if permission.get("domain") == company_domain:
|
||||||
public = True
|
public = True
|
||||||
|
else:
|
||||||
|
logger.warning(
|
||||||
|
"Permission is type domain but does not match company domain:"
|
||||||
|
f"\n {permission}"
|
||||||
|
)
|
||||||
elif permission_type == "anyone":
|
elif permission_type == "anyone":
|
||||||
public = True
|
public = True
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user