fix: #12389, update privilege group check

This commit is contained in:
Barış Soner Uşaklı
2024-03-05 12:37:25 -05:00
parent 22c225c51b
commit 87a79059f0
2 changed files with 2 additions and 2 deletions

View File

@@ -233,7 +233,7 @@ function hookHandlerPromise(hook, hookObj, params) {
if (hook.startsWith('filter:') && returned !== undefined) {
_resolve(returned);
} else if (hook.startsWith('static:') && hookObj.method.length <= 1) {
// make sure it is resolved if static hook doesn't return anything and doesn't use callback
// make sure it is resolved if static hook doesn't use callback
_resolve();
}
});