Hi there ...
For general Views is doing great with respecting the settings of node privacy by role module, meaning
lets say i have a content-type called "NEWS" which is only allowed for registered users, querying for that with views won't show any results
for anons.
Well in general thats really awesome and great, but, as life always is a series of exceptions, now I need the opposite feature with one view.
Lets stick with the same example above, i want to create another display of the same view, which will be preset as a Feed.
The feed again should list every news, without respecting the settings of Node Privacy.
So my feature request would be an option to enable choosing whether you want Views to respect or disrespect the privacy module.
Of course by default should be to respect :)
Comments
Comment #1
dawehnernode privacy by role uses node access, and this uses hook_db_rewrite_sql.
So views would have to be able to jump over rewrite_sql, which is quite easy.
Comment #2
seehawk commentedI'm going to add a big +1 to this. Any chance this can make it into the 3.x branch soon?
In the meantime, can anyone suggest a workaround? I'm in a bit of a bind, and would appreciate any suggestions you might have.
Thanks!
Comment #3
dawehnerFor this patch, the query handler should be able to have settings attached. There is no such patch yet, but i will write the patch, if noone else does it.
If this patch is commited, its possible to disable db_rewrite_sql
Comment #4
zewa commentedglad to hear that dereine ... thanks in advance
Greetings
Zewa
Comment #5
seehawk commentedDereine, if you could put that patch together, you would be my hero.
Thanks!
Comment #6
seehawk commentedJust checking in on the status of this patch. If there's anything I can do by way of testing or other input, please feel free to contact me.
Thanks!
Comment #7
dawehnerIt would use http://drupal.org/node/621142
Comment #8
seehawk commentedI just took a look at the patch in the link you referenced. It looks like there hasn't been any activity on it in a month, and that it's not in working condition. And I admittedly don't have a lot of experience with patches, but I don't see the code that would bypass the node privacy. Am I just missing something?
Comment #9
dawehnerNot currently, but if you can set settings to query handlers you can use it to make a settings for the default query handler to disable node access, which is exactly what you need
Comment #10
Scott Reynolds commentedIn reflection of this
I have to disagree if only in semantics. You wouldn't turn off node access you would turn of db_rewrite_sql.
edit: which you said in a previous comment. #read_fail
Comment #11
dawehnerThis will be part of #621142: Allow the query builder to define options
Comment #12
dawehner.