Skip to content

Commit

Permalink
NOBUG: Fixing permission lookups. (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
marklise authored Jan 28, 2022
1 parent 487fe5f commit 8bf5084
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lambda/readFacility/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exports.handler = async (event, context) => {
TableName: TABLE_NAME
};

const isAdmin = await checkPermissions(event);
const isAdmin = (await checkPermissions(event)).decoded;
console.log('isAdmin:', isAdmin);

try {
Expand Down
2 changes: 1 addition & 1 deletion lambda/readPark/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exports.handler = async (event, context) => {
TableName: TABLE_NAME
};

const isAdmin = await checkPermissions(event);
const isAdmin = (await checkPermissions(event)).decoded;
console.log('isAdmin:', isAdmin);

try {
Expand Down

0 comments on commit 8bf5084

Please sign in to comment.