feat: Prevent watchlisted entities from creating bookings (#19107)
* Add `searchForAllBlockedRecords` to watchlist repository * Create `checkIfUsersAreBlocked` * Call `checkIfUsersAreBlocked` in `loadAndValidateUsers` * Draft test * Add tests * Type fix * Type fix
This commit is contained in:
@@ -1433,6 +1433,7 @@ export function getOrganizer({
|
||||
smsLockState,
|
||||
completedOnboarding,
|
||||
username,
|
||||
locked,
|
||||
}: {
|
||||
name: string;
|
||||
email: string;
|
||||
@@ -1449,6 +1450,7 @@ export function getOrganizer({
|
||||
smsLockState?: SMSLockState;
|
||||
completedOnboarding?: boolean;
|
||||
username?: string;
|
||||
locked?: boolean;
|
||||
}) {
|
||||
username = username ?? TestData.users.example.username;
|
||||
return {
|
||||
@@ -1469,6 +1471,7 @@ export function getOrganizer({
|
||||
metadata,
|
||||
smsLockState,
|
||||
completedOnboarding,
|
||||
locked,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user