palasangha / Treasures-Of-Dhamma

GNU General Public License v3.0
0 stars 0 forks source link

Filter node according to user roles #48

Closed aryalsujay closed 2 years ago

aryalsujay commented 2 years ago
  1. Install this module https://www.drupal.org/project/permissions_by_term

  2. Go to admin/permissions-by-term/settings image

Change settings as shown above.

  1. Go to admin/structure/taxonomy/manage/tags/overview image

Add your taxonomy term according to the roles you have and save.

  1. Go to your content type. image

Add the taxonomy vocabulary field here in manage fields. In our case, we added tags. Again, enable the same in manage form display.

  1. Add new content to your content type. image

There, select the role that can access this particular node. Automatically, the formula is applied and the node is restricted to selected users only.