Add content type update

sndev - February 11, 2009 - 18:44
Project:Admin Role
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work
Description

Every time a content type is created, edited or deleted via the content type form there should be an update to the admin role to reflect the permissions. We created a patch to deal with this issue.

AttachmentSize
adminrole.patch482 bytes

#1

jhodgdon - February 22, 2009 - 17:13

Just a note that if you are using the Content Permissions module of CCK (field-level permissions), you also need to update the permissions for editing/viewing permissions on the individual fields. Does this patch do that?

#2

sndev - February 24, 2009 - 20:54

Yes, it does. The way that admin_role works is it activates all permissions for the super_role when the adminrole_update_perms function is run.

#3

sndev - February 24, 2009 - 20:55

I thought about your question a little bit more and I don't think it will do permissions for CCK fields automatically. I think two form references need to be put in the adminrole_form_alter content_field_edit_form and content_field_overview_form. I've added a new patch that includes this functionality.

AttachmentSize
adminrole.module.patch 550 bytes

#4

Dave Reid - November 25, 2009 - 20:41
Version:6.x-1.1» 6.x-1.x-dev
Status:needs review» needs work

I don't see the reasoning for including the form ID 'content_field_edit_form'. Committed the addition of node_type_form and content_field_overview_form to CVS.

 
 

Drupal is a registered trademark of Dries Buytaert.