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

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

问题描述

如何授予特定用户对特定节点的编辑权限?

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

我有一个名为学生"的用户角色.多个用户具有该角色,只有少数用户可以编辑节点.我怎么能意识到这一点?

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?

推荐答案

我将尝试涵盖一些用例,以及我将如何解决它们:

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 字段和节点访问用户参考实现了这一点.您可以通过核心权限系统授予用户编辑自己节点的权限,然后他们可以将其他用户添加到用户引用字段.在我的情况下,创建者没有获得该权限,我将该字段的默认值设置为创建者的用户 ID,这允许用户将自己从编辑节点的权限中删除.
  • 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天全站免登陆