Is there a way to user must login to read the topics from X category. For example, if topic is pinned it should be visible to any user but to access the content user must log in.
AFAIK no, which is also why we can’t onebox preview links to private categories.
you can restrict a category to view by only
then, only users who are logged in and made members of that group can view the content.
That’s not the question though, he wants pinned posts to be visible to any user but require authentication/group membership to subsequently read.
Discourse operates on the opposite principle, it doesn’t expose anything the user can’t currently access.
Indeed and for good reasons.
Discourse enables admins to specify user groups very detailed.
Just try it. You’ll see, there are dozens of cool features.
If you have a link to the topic in the public topic which points to the protected one, anyone can see the link.
Only those with permission will be able to see its content once clicked.