- Added `isCustomerBanned` function to determine if a customer is banned based on the `bannedUntil` field. - Updated the `BaseService` to throw an error if a banned customer attempts to access certain functionalities. - Enhanced the GraphQL operations to include the `bannedUntil` field in customer queries and mutations, improving data integrity and user experience. - Integrated the `CheckBanned` component in the layout to manage banned customer states effectively.
4 lines
78 B
TypeScript
4 lines
78 B
TypeScript
export const ERRORS = {
|
|
NO_PERMISSION: 'Нет доступа',
|
|
} as const;
|