@baris That's it! Thanks a lot.
Static hooks
-
Hi,
I am trying to use the static hook:static:messaging.canMessageUser
to 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?
Suggested Topics
-
0 Votes3 Posts182 Views
-
0 Votes4 Posts1098 Views
-
0 Votes9 Posts3058 Views
-
0 Votes6 Posts1843 Views
-
Hook: user is online
Unsolved Plugin Development0 Votes3 Posts1954 Views
Copyright © 2023 NodeBB | Contributors