mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-05-15 14:20:11 +02:00
Adding credential.is_admin to fix Gdrive indexign bug
This commit is contained in:
parent
4990aacc0d
commit
acb60f67e1
@ -343,7 +343,7 @@ const Main = () => {
|
|||||||
| undefined = credentialsData.find(
|
| undefined = credentialsData.find(
|
||||||
(credential) =>
|
(credential) =>
|
||||||
credential.credential_json?.google_drive_tokens &&
|
credential.credential_json?.google_drive_tokens &&
|
||||||
credential.user_id === currentUserData?.id
|
credential.is_admin
|
||||||
);
|
);
|
||||||
const googleDriveServiceAccountCredential:
|
const googleDriveServiceAccountCredential:
|
||||||
| Credential<GoogleDriveServiceAccountCredentialJson>
|
| Credential<GoogleDriveServiceAccountCredentialJson>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user