Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
Update restrict-to-owner.js (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
bertho-zero authored and daffl committed Aug 21, 2018
1 parent 18f9ba7 commit 5d73133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/restrict-to-owner.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = function (options = {}) {
if (!userEntity) {
// TODO (EK): Add a debugger call to remind the dev to check their hook chain
// as they probably don't have the right hooks in the right order.
throw new errors.NotAuthenticated(`The current user is missing. You must not be authenticated.`);
throw new errors.NotAuthenticated(`The current user is missing. You should be authenticated.`);
}

const id = get(userEntity, options.idField);
Expand Down

0 comments on commit 5d73133

Please sign in to comment.