Closed (fixed)
Project:
CCK Field Permissions
Version:
4.7.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Feb 2007 at 03:37 UTC
Updated:
11 Mar 2007 at 06:30 UTC
If I set a field to have no view, edit, create perms for a certain user role and put that field into a group, the filed shows up anyway for users in that role.
If I move that filed from the group to stand alone, outside the group I wanted it in, the filed permissions work as I set them.
This is not a replication of http://drupal.org/node/110882
Comments
Comment #1
ericg commentedthis is partly related to a change in cck recently. groups are now prefixed with group_ not group-
so part of the fix is to change line 167 of the .module file from
if ($value['#type'] == "fieldset" && strstr($key, "group-")){
to
if ($value['#type'] == "fieldset" && strstr($key, "group_")){
but doing that hides any content in any group. So there must be something else that changed in cck that is confusing
function _cfp_no_fields
more info as I dig...
Comment #2
arthurf commentedYep. Thanks for noting this. Fixed in the cvs version There were a few other issues with field groups which should now be ported back from the 5.0 branch.
Comment #3
(not verified) commented