mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-05-14 22:00: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(
|
||||
(credential) =>
|
||||
credential.credential_json?.google_drive_tokens &&
|
||||
credential.user_id === currentUserData?.id
|
||||
credential.is_admin
|
||||
);
|
||||
const googleDriveServiceAccountCredential:
|
||||
| Credential<GoogleDriveServiceAccountCredentialJson>
|
||||
|
Loading…
x
Reference in New Issue
Block a user