Skip to content

Commit c40cd4f

Browse files
author
STAFYNIAK Sacha
committed
add missing whitelist functions
1 parent b606abb commit c40cd4f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/kuzzle.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,9 @@ module.exports = Kuzzle = function (host, options, cb) {
293293
filter: function (name, func, target, passes) {
294294
var whitelist = ['getAllStatistics', 'getServerInfo', 'getStatistics',
295295
'listCollections', 'listIndexes', 'login', 'logout', 'now', 'query',
296-
'checkToken', 'whoAmI'];
296+
'checkToken', 'whoAmI', 'updateSelf', 'getMyRights',
297+
'refreshIndex', 'getAutoRefresh', 'setAutoRefresh'
298+
];
297299

298300
return passes && whitelist.indexOf(name) !== -1;
299301
}

0 commit comments

Comments
 (0)