Z
Z
zdravnik2016-01-18 13:38:22
Drupal
zdravnik, 2016-01-18 13:38:22

How to differentiate viewing rights for users of articles?

With the help of the book module, a certain book is implemented, for example, with 10 articles. There are some number of users. It is necessary to differentiate the rights of users to view these articles. Several roles have been created for this. Next, you need to make it so that users of role A, for example, can view, edit and create any articles. And a group of users of the role O, could only view / edit articles for example 1,3,7 and also create their own new articles that will be available to the roles A and O. At the same time, it is necessary that this whole mechanism of rights is not "nailed", that is for example, after a while I could easily submit article number 4 for viewing / editing not only for A but also for role O. Tell me how to implement this?
He personally decided to distinguish between rights based on the type of materials. That is, the O role has access to materials of the type "o_page" and they can only create materials of the o_page type, and at the same time not see materials of the type "a_page". And users of role A could see/edit and create both o_page and a_page. But it turned out that in Drupal it is not so easy to change the type of already published / existing material. In this regard, the question arose How to change the type of existing content? , the answers to which did not bring happiness.
Therefore, assuming there are other ways to solve the original question, which is described in this topic, and the current question was asked. Please tell me how can I solve my problem.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikit Khaner, 2016-01-18
@zdravnik

why change the type of material, it is fundamentally wrong.
Use content access, modules:
https://www.drupal.org/project/nodeaccess
https://www.drupal.org/project/content_access
https://www.drupal.org/project/node_view_permissions
https:// www.drupal.org/project/node_access

Z
zdravnik, 2016-01-18
@zdravnik

Nikit Khaner I forgot to mention that I have drupal 7, so link 4 doesn't work. And of the first three, the most efficient is https://www.drupal.org/project/nodeaccess , the distinction by types of materials works, but there is no right to a specific material.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question