feat: Whitelist user's from workflow spam scanning (#20717)

* Add whitelistWorkflows to user

* Do not autolock whitelisted users

* Add endpoint to whitelist a user

* Get users data - include whitelistWorkflows

* Whitelist a user on the user admin page

* Fix typo

* Add test

* Use translations

* Add `updateWhitelistWorkflows` to `UserRepository`

* Use i18 for strings

* Rename to whitelistWorkflows

---------

Co-authored-by: Benny Joo <[email protected]>
This commit is contained in:
Joe Au-YeungandBenny Joo authored and GitHub committed 2025-04-16 18:09:29 -04:00
1 parent 515f3263e0
commit a82d616b79
11 files changed
+110 -2

No files matched your search

@@ -3124,7 +3124,10 @@
"resend_in_seconds": "Resend in {{seconds}} seconds",
"resend": "Resend",
"verification_email_sent": "Verification email sent",
"ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑",
"remove_whitelist_status": "Remove whitelist status",
"whitelist_user_workflows": "Whitelist user workflows",
"user_workflows_whitelisted": "User workflows whitelisted",
"user_workflows_unwhitelisted": "User workflows unwhitelisted",
"date_and_time": "Date & Time",
"email_reminder_upcoming_event_notice": "This is a reminder about your upcoming event.",
"email_reminder_triggered_by_workflow": "This reminder was triggered by a Workflow in Cal.",
@@ -3136,5 +3139,6 @@
"meeting_not_joined_question": "didn't join the meeting?",
"reschedule_cta_short": "Reschedule here.",
"you_and_conjunction": "You &",
"email_survey_triggered_by_workflow": "This survey was triggered by a Workflow in Cal."
"email_survey_triggered_by_workflow": "This survey was triggered by a Workflow in Cal.",
"ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑"
}