Implement views filter integration

bloto - August 27, 2009 - 06:26
Project:CCK Field Privacy
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hello,

Currently I am displaying latelly added pictures on my site, however if user restricts image field with the use of this module the field is empty in views. It would be excellent to have filter option to not show field if its restricted in sql result.
In such filter it could be possible to determine which field is the restricted one. So for instance if one displays 2 fields (picture+username) then he could add filter which says : hey if picture is restricted do not show me that in result.

Thanks,
Tomasz

#1

CPyle - August 31, 2009 - 19:08

That would probably best be handled with content_permissions. If a field itself is not visible to a user it will not show in views. In order for views to know not to show a field, it has to know ahead of time that every single instance of that field is not viewable by the user. Content Permissions does this.

In the case of CCK Field Privacy, there's still a chance that most instances will be visible, so it only excludes the instances of that field that the user can't see and leaves everything else alone.

 
 

Drupal is a registered trademark of Dries Buytaert.