Skip to content

Example sync code#7172

Draft
eliykat wants to merge 1 commit intotools/PM-31885-SendControls-Policyfrom
tools/PM-31885-SendControls-Policy-eliykat
Draft

Example sync code#7172
eliykat wants to merge 1 commit intotools/PM-31885-SendControls-Policyfrom
tools/PM-31885-SendControls-Policy-eliykat

Conversation

@eliykat
Copy link
Member

@eliykat eliykat commented Mar 7, 2026

🎟️ Tracking

📔 Objective

Example code for @harr1424

📸 Screenshots

Comment on lines +41 to +45
// Optimization: DisableSendPolicy.Enabled maps to SendControlsPolicy.Data.DisableSend - so we can use that
// as a proxy for that legacy policy state
sendControlsPolicy.Enabled = postUpsertedPolicyState.Enabled ||
sendControlsPolicyData.DisableSend;

Copy link
Member Author

Choose a reason for hiding this comment

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

This optimization is not required if it's confusing. It could just follow the exact same pattern as the other file.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 7, 2026

@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2026

Logo
Checkmarx One – Scan Summary & Detailsbf993df5-3161-4055-93ca-df870bfd0b26


New Issues (1) Checkmarx found the following issues in this Pull Request
# Severity Issue Source File / Package Checkmarx Insight
1 MEDIUM CSRF /src/Api/KeyManagement/Controllers/AccountsKeyManagementController.cs: 146
detailsMethod at line 146 of /src/Api/KeyManagement/Controllers/AccountsKeyManagementController.cs gets a parameter from a user request from model. Thi...
Attack Vector

Fixed Issues (1) Great job! The following issues were fixed in this Pull Request
Severity Issue Source File / Package
MEDIUM CSRF /src/Api/Auth/Controllers/AccountsController.cs: 291

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