Skip to content

Commit

Permalink
Ensure platform event objects show up in permission manager
Browse files Browse the repository at this point in the history
This only applies to custom platform events

resolves #917
  • Loading branch information
paustint committed Jun 6, 2024
1 parent ac2dc69 commit 6564ca0
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ const MAX_OBJ_IN_QUERY = 100;

export function filterPermissionsSobjects(sobject: DescribeGlobalSObjectResult) {
return (
sobject.createable &&
sobject.updateable &&
!sobject.name.endsWith('__History') &&
!sobject.name.endsWith('__Tag') &&
!sobject.name.endsWith('__Share')
sobject.name.endsWith('__e') ||
(sobject.createable &&
sobject.updateable &&
!sobject.name.endsWith('__History') &&
!sobject.name.endsWith('__Tag') &&
!sobject.name.endsWith('__Share'))
);
}

Expand Down

0 comments on commit 6564ca0

Please sign in to comment.