简体   繁体   中英

Restrict comments in content type based on user role in Drupal

I am building a site in Drupal, where there are 2 different types of registered users. Let us call them basic users and premium users . These could be roles or groups or something...

Authorized users will be able to publish pages with simple content and comments underneath. All pages are viewable publicly, even by non registered users and so are the comments.

Only registered users should be able to post comments.

What I would like is for some pages to allow comments only from premium users . So, there would be two categories of pages. Again let us call them basic pages and premium pages .

The permissions would be as follows:

Basic pages
READ: all
COMMENT: basic users , premium users

Premium pages
READ: all
COMMENT: premium users

Any help/pointers would be appreciated, as I have limited experience with Drupal.

Is premium page different that basic page in terms of node type ?
Are you using panels to show the node and comments box ?
Are you using Drupal comments or third-party services (Disqus) ?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM