I'm trying to figure out how to configure comments so that the user can only view their own comments in addition a user with a certain relationship to that user should also be able to read/post comments.

For example:

I have a 2 sets of users (lets call them user-x and user-y) user-x and user-y both have a different role type (for example student and learner). user-x has a page where he can view his submitted data and also post comments on that page, user-y who has a relation with user-x can also view user-x's comment and also comment on user-x area of content.

I can provide more detail if needed but that is the basis of it.

Thanks in advance for any help.

Comments

khorpyakov’s picture

You could achieve this with views (http://www.drupal.org/project/views) module and correctly configured permissions.

ayesh’s picture

Comment_perm module enables advanced comment permissions.
As above comment said, views is the ideal way to do this. If you have a complex access control idea, install ACL API, and one of its supported modules for this.

vin247’s picture

Thanks for the replies, I've tried the views method already but unfortunately doesn't work the way I want it to, also gave comment_perm and shot but no luck, will give ACL API a try though and will see how I get on.