I am doing an API for a blog site using Clean Architecture and DDD. I find myself doing a use case to get all comments for a requested article. The thing is that anonymous users can see the comments but not do any action on them like editing, liking, etc. I just realized that this is more than one actor for the same use case--public (unauthenticated) and authenticated. Should I do two different use cases for getting the comments? SRP suggests me that YES. However, since I have not being here before, I would appreciate feedback on good strategies for managing such scenarios effectively.
↧