I want to only allow users of a specific role to be able to comment on a specific content type. The only current solution for this is using the "Comment Permissions" module which unfortunately is only available for Drupal 6 and hasn't been updated for over a year. I have seen some people saying that it's possible to do this by writing custom code however i haven't been able to find any examples of this. Does anyone here know how this could be done or at least point me in the right direction? I'm not good at php though i have some programming experience.
I was thinking that it would also be okay if i could allow users of a specific role to comment on nodes/content type where commenting has been closed if achieving it that way is simpler.
Any help is greatly appreciated.