One of the specs for the Content Construction Kit is private fields. Has anyone implemented role-based fields in flexinode? Could this easily be implemented in flexinode and then ported to work w/ the CCK once it is completed?
When creating a new flexinode type, role-based fields would allow you to select which roles can see a field when creating flexinode content - if you do not have the proper role for a field, it is invisible. Also, when viewing a published flexinode, if you do not have the proper role, the field is also invisible.
something i've tried in a phptemplate override is:
<?php elseif ($field_id == 6 && user_access('administer nodes')) : ?>
<div class="flexinode-textarea-6">
<strong><em><?php print $label; ?>: </em></strong><br />
<?php print $formatted_value; ?>
</div><br />?>
This obviously is not automated at all for the user, as it is in the tpl.php theme file, nor do I know how secure this is. Also, this does nothing to hide the field when creating a new flexinode. Another valuable spec would be the capability to later change the permissions on a field to allow additional or fewer roles to edit or view the field.
If this has never been implemented, I may be interested in doing a bounty to get it implemented, but also try to do it in such a way that would easily port from flexinode to CCK, if at all possible.