如何给特定用户编辑特定节点的权限? [英] How do I give a specific user editing rights to a specific node?

查看:135
本文介绍了如何给特定用户编辑特定节点的权限?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何给特定节点的特定用户编辑权限?

How do I give a specific user editing rights to a specific node?

我有一个名为Student的用户角色。多个用户具有该角色,只有少数用户可以编辑节点。我如何才能意识到这一点?

I have a user role named "Student". Multiple users have that role, only a few of them can edit a node. How can I realise this?

推荐答案

我将尝试覆盖几个用例,我将如何解决它们: / p>

I'll try and cover a few use cases, with how I would solve them:


  1. 如果一类用户的所有成员都可以编辑某个类型的任何节点


    • 为该用户群体(超级学生,Emyr建议)创建一个新角色,并通过Drupal的核心权限系统(不需要节点访问模块)授予他们编辑类型权限内容


  • 创建该用户的一个新用户角色,并授予他们对特定节点的编辑权限(需要一个节点访问模块,例如节点访问内容访问)。这也将要求有人有权限(和时间)在创建新节点时授予角色的访问权限。

  • Create a new role for that subset of users and grant them edit permissions on the specific nodes (a node access modules is required, such as Node Access or Content Access). This will also require that someone has the permissions (and time) to grant access to the role whenever a new node is created.

  • 这将需要一个节点访问模块,例如使用ACL的节点访问或内容访问。还需要有权限授予其他用户访问权限的管理用户来编辑节点。


  • 我最近用一个用户参考CCK字段和节点访问用户参考。您可以授予用户通过核心权限系统编辑自己的节点的权限,然后可以将其他用户添加到用户参考字段。在我的情况下,创建者没有获得该权限,并且将该字段的默认值设置为创建者的用户标识,这允许用户删除自己无法编辑节点。

  • I implemented this recently with a user reference CCK field and Node Access User Reference. You can grant users permission to edit their own nodes through the core permissions system and they can then add other users to the user reference field. In my case creators are not given that permission and I set up the default value of the field to the creator's user id, which allows a user to remove themselves from being able to edit the node.

这些都假定您的内容没有分类。如果您的内容和用户有足够的组织,您可以使用基于分类或有机组的节点访问模块。

These all assume there is no categorization for your content. You may be able to utilize node access modules based on Taxonomy or Organic Groups if your content and users are organized sufficiently.

这篇关于如何给特定用户编辑特定节点的权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆