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
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 1352654.patch | 578 bytes | dawehner |
Comments
Comment #1
itamair commentedNo help or comment from any?
Comment #2
dawehnerIt seems to make sense to support this access function here, but it's not that easy.
Comment #3
itamair commentedOk, thanks a lot for the reply.
For now will freeze that field exposed filter need ...
;-)
Comment #4
dawehnerAre 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'.
Comment #5
steffenr@dereine: field_access needs a third parameneter for checking the permissions:
I tried to reproduce the scenario but the exposed filter still shows up .. The access functions all called but won't work..
Comment #6
dawehnerYou 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.
Comment #7
teammk commentedHello,
Any news on this ? We are encountering the same problem here...
thx