Skip to content

Commit 79977de

Browse files
committed
Always prevent publishing of authentication events (#614)
1 parent a458efc commit 79977de

5 files changed

Lines changed: 1093 additions & 552 deletions

File tree

packages/authentication/lib/service.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ module.exports = function init (options) {
6868

6969
const service = app.service(path);
7070

71-
if (typeof service.filter === 'function') {
72-
service.filter(() => false);
71+
if (typeof service.publish === 'function') {
72+
service.publish(() => false);
7373
}
7474
};
7575
};

0 commit comments

Comments
 (0)