Stop rejecting application token on calendar and message events requests (#20440)

fixes https://github.com/twentyhq/twenty/issues/20423 by authorizing
application token to perform calendarEvents and message queries
This commit is contained in:
martmull
2026-05-11 15:24:24 +02:00
committed by GitHub
parent 8909badc59
commit e72a907baa
5 changed files with 35 additions and 40 deletions
@@ -118,6 +118,7 @@ export const validateOperationIsPermittedOrThrow = ({
objectMetadata.universalIdentifier ===
WORKSPACE_MEMBER_OBJECT_UNIVERSAL_IDENTIFIER;
// TODO: this should be improved, we may have more complex permission configuration for is system objects
if (objectMetadataIsSystem && !isWorkspaceMemberObject) {
return;
}