Adding credential.is_admin to fix Gdrive indexign bug

This commit is contained in:
meherhendi 2023-10-31 16:04:59 +01:00 committed by Chris Weaver
parent 4990aacc0d
commit acb60f67e1

View File

@ -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>