NodeBB custom Javascript check current user groups
-
Hi,
can I somehow check by using custom javascript, if user belong to specific group ?
Would be easier than writing plugin.thanks!
-
You can use Ajax to request their user page, and in the json it should specify all of the groups they're in.
-
@PitaJ said in NodeBB custom Javascript check current user groups:
You can use Ajax to request their user page, and in the json it should specify all of the groups they're in.
ah sorry forgot to reply here,
meantime I found out, that its not a problem in custom JS to use app.user.groupTitle
it works fine so good
Copyright © 2024 NodeBB | Contributors