Skip to content

Commit

Permalink
Fixing typo
Browse files Browse the repository at this point in the history
Closes #22
  • Loading branch information
makinde committed May 21, 2018
1 parent 3d6737e commit b5d0d47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function embedPermissions(schema, options, doc) {
function sanitizeDocument(schema, options, doc) {
const authorizedFields = getAuthorizedFields(schema, options, 'read', doc);

if (!doc || getAuthorizedFields.length === 0) { return false; }
if (!doc || authorizedFields.length === 0) { return false; }

// Check to see if group has the permission to see the fields that came back.
// We must edit the document in place to maintain the right reference
Expand Down

0 comments on commit b5d0d47

Please sign in to comment.