I am getting a plugin developed that will add a boolean value based on some custom logic to the user_custom_fields table for each user who is not allowed to create a new topic.
user.custom_fields['can_create_topic'] = false;
What I want to do?
I want to hide the “+ New Topic” button for some users based on custom logic.
Question
Is it possible to customize can_create_topic? guardian so that it performs an additional check on a user_custom_field to determine if a user is allowed to create a new topic or not?