Yes, have a look at the code in the second post in this topic: How to prevent some WP users from being able to login to Discourse.
Yes, have a look at the code in the second post in this topic: How to prevent some WP users from being able to login to Discourse.