Hi.
Please have a look at
http://drupal.org/node/334945#comment-2185060
This is fixed for text CCK fields, but the date field does not work.
Test case:
*create a cck date field.
*set default value to "today" (or anything else)
*set field permissions for a user to be able to view the field, but forbid editing.
*as this user, create content of this type - you shouldn't see the date CCK field, but theoretically the default value should be written. - but it is not.
the database field is empty.
This is serious, my webpage requires the following: I want to have a form with some values creatable by users, and there should be other values (like the creation timestamp - therefore the date field) which shouldn't be editable. It should be todays date, and never again changable by the user.
This is not possible, because the date field is ignored when edit permission is not set.
Maybe you can reuse some of the code in the link above - they fixed it for the text fields.
Thanks
Comments
Comment #1
nerdoc commentedhm. Anyone reading this?
Comment #2
baff commentedSame problem
Comment #3
ridefree commenteddid anyone ever figure out this issue?
I'm having the same issue ... we finally upgraded our site from 5.x to 6.x and have many users where we can't give them access to edit this field, but now the fields are appearing blank even though it is required and defaults to now
Comment #4
damienmckennaUnfortunately the Drupal 6 version of the Date module is no longer supported. That said, we appreciate that you took time to work on this issue. Should this request still be relevant for Drupal 7 please feel free to reopen it. Thank you.