We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent def3f5c commit 344671cCopy full SHA for 344671c
src/routes/copilotOpportunity/list.js
@@ -66,6 +66,11 @@ module.exports = [
66
.then((copilotOpportunities) => {
67
const formattedOpportunities = copilotOpportunities.map((opportunity) => {
68
const plainOpportunity = opportunity.get({ plain: true });
69
+ // For users who are not admin or manager, we dont want to expose
70
+ // the project id
71
+ if (!isAdminOrManager) {
72
+ delete plainOpportunity.projectId;
73
+ }
74
return Object.assign({}, plainOpportunity,
75
plainOpportunity.copilotRequest ? plainOpportunity.copilotRequest.data : {},
76
{ copilotRequest: undefined },
0 commit comments