I want to block unapproved users to view the discussion..
Where i have add the code ?
When they come to discussion page simply redirect to dashboard and message with "Admin approval is pending"
How can i archive this ?
Welcome to the community!
What version of Vanilla are you running?
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Make it so guests and applicants can't view discussions and comments in your dashboard..
You don't want to redirect them to dashboard you want to have them signin.
just check for role and redirect.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.