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.
| Attachment | Size |
|---|---|
| adminrole.patch | 482 bytes |

#1
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
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
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.
#4
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.