Skip to content

Commit

Permalink
Always prevent publishing of authentication events (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl committed Aug 29, 2018
1 parent bde8e7a commit d810715
Show file tree
Hide file tree
Showing 5 changed files with 1,093 additions and 552 deletions.
4 changes: 2 additions & 2 deletions packages/authentication/lib/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ module.exports = function init (options) {

const service = app.service(path);

if (typeof service.filter === 'function') {
service.filter(() => false);
if (typeof service.publish === 'function') {
service.publish(() => false);
}
};
};
Expand Down
Loading

0 comments on commit d810715

Please sign in to comment.