(request)
| 632 | } |
| 633 | |
| 634 | export function promiseEnforceMasterKeyAccess(request) { |
| 635 | if (!request.auth.isMaster) { |
| 636 | throw createSanitizedHttpError(403, 'unauthorized: master key is required', request.config); |
| 637 | } |
| 638 | return Promise.resolve(); |
| 639 | } |
| 640 | |
| 641 | export const addRateLimit = (route, config, cloud) => { |
| 642 | if (typeof config === 'string') { |
nothing calls this directly
no test coverage detected