Skip to content

Conversation

hentrymartin
Copy link
Collaborator

What's in this PR?

  • Send project info only for PMs and Admin role users


return models.CopilotOpportunity.findAll({
include: [
include: isAdminOrManager ?[
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The conditional isAdminOrManager ? is missing a fallback for when the condition is false. Consider adding an empty array or appropriate logic to handle cases when the user is not an Admin or Manager.

@hentrymartin hentrymartin changed the title Send project info only for PMs and Admin role users [Hot Fix] Send project info only for PMs and Admin role users Sep 2, 2025
@hentrymartin hentrymartin changed the base branch from develop to master September 2, 2025 19:16
@hentrymartin hentrymartin changed the base branch from master to develop September 2, 2025 19:16
@hentrymartin hentrymartin merged commit ada92eb into develop Sep 2, 2025
1 of 2 checks passed
@hentrymartin hentrymartin deleted the fix-project-exposing branch September 2, 2025 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant