MCPcopy Index your code
hub / github.com/parse-community/parse-server / promiseEnforceMasterKeyAccess

Function promiseEnforceMasterKeyAccess

src/middlewares.js:634–639  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

632}
633
634export 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
641export const addRateLimit = (route, config, cloud) => {
642 if (typeof config === 'string') {

Callers

nothing calls this directly

Calls 1

createSanitizedHttpErrorFunction · 0.90

Tested by

no test coverage detected