include the access control settings in the node form

stefan_seefeld - September 28, 2007 - 15:14
Project:Content Access
Version:5.x-1.5
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work
Description

I'v just installed the content access module, and I really like it !
However, I find a little unintuitive (and insecure) the way per-node access control
is handled:
I would expect node authors to be offered access control forms on the node
creation page. However, it seems the expected work-flow is to 1) create a node
(with full access control as per the content-type-specific settings), and only then
2) change access control parameters.
Thus, there is some time between 1) (node creation) and 2) (node editing) where
access control is granted to everybody.
Am I missing something ?

THanks,
Stefan

#1

Muslim guy - September 28, 2007 - 16:56
Title:no access control setting during node creation» Nodeaccess too

I was also thinking aboout nodeaccess.module

A user has to submit it first, then edit it and click `grant' tab

#2

Muslim guy - September 28, 2007 - 16:57
Title:Nodeaccess too» no access control setting during node creation

Sorry the original title was changed

#3

fago - October 4, 2007 - 08:25
Title:no access control setting during node creation» include the access control settings in the node form
Category:bug report» feature request

hm, I don't use the module this way, but yes this might be not ideal for newly created nodes. Feel free to provide a patch, that improves that. :)

#4

christopher_skauss - March 20, 2008 - 20:34

Has anyone managed to add this functionality?

#5

dvinegla - March 31, 2008 - 13:23

this is a patch.

Notes:
-Only works with ACL 5.x-1.x-dev
-workflow-ng is not tested.

AttachmentSize
content_access.module.patch 4.64 KB

#6

dvinegla - March 31, 2008 - 15:16
Version:5.x-1.2» 5.x-1.3

#7

dvinegla - April 3, 2008 - 12:46
Status:active» needs work

#8

design.er - October 12, 2009 - 12:13

has anybody tested this patch yet?
Unfortunately I'm using D6 so I'm unable to test it at the moment.
It would be an absolutely usability improvement if this feature could go into the content access core - even if only as an option.

#9

cyoong87 - October 14, 2009 - 23:22
Version:5.x-1.3» 5.x-1.5

The patch works. It also works with the latest stable ACL module. I haven't tested the workflow-ng.

Does anyone know how to hide, disable, or filter the roles?

I've tried modifying the hook_form_alter so I can use '#disabled' for the checkboxes. It seems to me it uses checkboxes so I guess there is no attribute to disabling an option. If I try to disable a checkbox for a 'View', 'Edit', or 'Delete' column under Role Access Control, it disables all the checkboxes.

 
 

Drupal is a registered trademark of Dries Buytaert.