How to set permissions for a content type on the basis of some specific roles?

时间:2016-08-30 04:43:16

标签: permissions drupal-7 content-type roles

Greetings.

I am working on a Drupal 7 site and wanted to discuss few permission related things where I am facing issues.

I want the below mentioned permissions:

1) I want to create a user lets say "Job posting manager" for example. Who can only create , edit job content type. No option to publish.

2) I want to create a another user lets say "Job admin manager" for example. Who can publish / edit the job along with create job.

So how can I set this type of permission for only specific content type and specific users?

Thanks in advance.

1 个答案:

答案 0 :(得分:0)

让我们说内容类型命名为" job"。

您需要创建两个角色:

  • 职位发布经理
  • 工作管理经理

您可以通过访问admin / people / permissions / roles(页面底部)来创建这两个角色

创建两个角色后,您应该创建两个不同的用户并为其分配适当的角色:

  • User1 - >分配角色"职位发布经理"
  • User2 - >分配角色" Job Admin Manager"

作为最后一步,您需要为新创建的角色分配适当的权限:

  • 访问:admin / people / permissions

  • 过滤"节点"部分并根据需要分配权限。

有关更详细的工作流程解决方案,请查看Workbench及其子模块,如Workbench Moderation。