I found my self in the same condition of what highlighted in this D6 issue: http://drupal.org/node/539380

I set up role permissions on a field (with field permissions module), that is also object of an exposed filter.
For the un allowed users, the field correctly doesn't show, but still does display the exposed filter based on it.

As it is reasonably said in the D6 post (#7 "Settings field-level CCK permissions doesn't effect the filters (it probably should). id consider this a bug ...
if your not allowed to view a field, you shouldnt be able to filter by it."
)
I guess I wouldnt have to design new views depending on permissions ...

is there any way to accomplish this with actual default Views functionalities? and without module hardcoding?

Tnx for any advice

CommentFileSizeAuthor
#4 1352654.patch578 bytesdawehner

Comments

itamair’s picture

No help or comment from any?

dawehner’s picture

Category: support » feature

It seems to make sense to support this access function here, but it's not that easy.

itamair’s picture

Ok, thanks a lot for the reply.
For now will freeze that field exposed filter need ...

;-)

dawehner’s picture

Status: Active » Needs review
StatusFileSize
new578 bytes

Are you sure this worked on drupal6? I can't seem to find a special behavior here.

The first question for field_access is on what kind of operation are we here. I choosed 'view'.

steffenr’s picture

Status: Needs review » Needs work

@dereine: field_access needs a third parameneter for checking the permissions:

 'access callback' => 'field_access',
        'access arguments' => array('view',  $field['field_name'], $field['type']),

I tried to reproduce the scenario but the exposed filter still shows up .. The access functions all called but won't work..

dawehner’s picture

You talk about the $entity, right? well you don't have the entity at that level, so i fear that this issue is a won't fix.

teammk’s picture

Issue summary: View changes

Hello,

Any news on this ? We are encountering the same problem here...

thx