9 months ago

How to block content from blocked users?

Posted 9 months ago by divinulledivi

I'm creating a forum. I want users to have the ability to block other users so that they wouldn't see any of their content and wouldn't get private messages from them. I have created a BlockedUser model and functions in the controller - block, unblock and list all blocked users.

But how do I go about hiding the content? Should I just check if user is blocked directly in the view or is there a better way to do this?

Please sign in or create an account to participate in this conversation.