Skip to content

Commit bb3d6db

Browse files
committed
add log when rejecting a request due to permissions error
1 parent 0beff3f commit bb3d6db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/parseRoutes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ const getHandlerForRole = (privilege, visibility, callback, req) => {
152152
if (typeof privilege.any === 'function') {
153153
return privilege.any;
154154
}
155+
console.log('rejecting request due to lack of privilege', privilege, visibility, req.headers.role);
155156
return sendError;
156157
};
157158

0 commit comments

Comments
 (0)