简体   繁体   English

明智地在drupal中编辑和删除节点上的权限

[英]Role wise editing and deleting the permissions on a node in drupal

I have a drupal7 site and I need to implement this functionality into the site. 我有一个drupal7网站,需要在该网站中实现此功能。 I have two user roles(private and public), if a user of public role creates a node then all the users of public role should be given the edit and delete permissions for that node but the users of the private role should only be able to view the node and vice-versa. 我有两个用户角色(私有角色和公共角色),如果一个公共角色的用户创建一个节点,那么应该给所有公共角色的用户对该节点的编辑和删除权限,但私有角色的用户只能查看节点,反之亦然。 Please tell me how to achieve this pro grammatically as I have been searching for a module that can perform this functionality and there is no such module. 请告诉我如何以编程方式实现此目标,因为我一直在寻找可以执行此功能的模块,因此没有此类模块。

Just a quick thought. 只是一个快速的想法。

2 content types: public_node & private_node. 2种内容类型:public_node和private_node。 Then use module Content Access: http://drupal.org/project/content_access 然后使用内容访问模块: http : //drupal.org/project/content_access

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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