Another kind of view permissions
| Project: | CCK Field Permissions |
| Version: | 5.x-1.9 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | won't fix |
Jump to:
The current state of view perms (as I understand them) is that:
- Users of a particular role are granted permissions to edit certain fields
- Users of a particular role are granted permissions to view certain fields
I would propose that there is another kind of permission that may be addressed by this module, where node author's of a particular role have permisssions to display certain fields.
One case would be a community/directory sort of system where regular users can create a profile of some kind. Members of higher sort can display contact information or some other information in addition to what ordinary users can enter. Part of that is taken care of in this module as one can disallow edit access to certain fields. But what is needed, is that the information is "taken away" if the higher level of membership is lost.
Let's pretend a member pays a fee for a year to display additional data in their profile. So they are assigned a role that has perms to edit certain fields upon creating their node. At the end of the year, when their membership runs out, the data is still there and viewable by other users, although they can't edit it anymore. My suggestion is that the viewing public should not be able to view it anymore either.
Clear as mud?

#1
I feel that this is beyond the scope of this module at this time.
Others might disagree...
If you really want to do this, you can do it in the theming layer
pseudo code:if (user_load($node->uid) has role "display special fields") {
print $field_special_stuff[0]['view'];
}