mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-08 12:28:21 +00:00
fix: ( permissions) accept payments:manage for luggage charges
This commit is contained in:
@@ -22,7 +22,14 @@ import { PASSENGER_PERMS } from '../../seed/passenger-permissions.registry';
|
||||
* included — could raise a charge.
|
||||
*/
|
||||
const CanCharge = () =>
|
||||
PassengerStaff([PASSENGER_PERMS.excessBaggage.charge, PASSENGER_PERMS.bookings.manage, PASSENGER_PERMS.admin]);
|
||||
PassengerStaff([
|
||||
PASSENGER_PERMS.excessBaggage.charge,
|
||||
// Same shape as the supplementary-charge guard in payments.controller.ts: both bill a
|
||||
// passenger and send them a pay link, so whoever manages payments can do either.
|
||||
PASSENGER_PERMS.payments.manage,
|
||||
PASSENGER_PERMS.bookings.manage,
|
||||
PASSENGER_PERMS.admin,
|
||||
]);
|
||||
|
||||
class UpsertBaggageAllowanceDto {
|
||||
@IsString() seatClassId: string;
|
||||
|
||||
Reference in New Issue
Block a user