I don't think so, probably something to do with cookies changing. I'm guessing you need to call redirect or status.send to avoid the error.
yzahn last edited by
I am trying to use the static hook:
static:messaging.canMessageUserto add custom logic to the permission checks if a user may message another user.
However, it seems that static hooks cannot alter the flow of nodebb. Throwing an error or returning false etc. do not do anything.
Shouldn't this rather be a filter hook?
Or am I misunderstanding something?
Hmm, looks like static hooks are not sending the error back which seems to be the problem. Can you open an issue on our github tracker.