I am wondering if anyone has figured out a way to create a view that filters content based on what the current user can edit. So, for example, I have taxonomy access and the core node access modules controlling permissions, and I want a logged-in user to see only the nodes for which they are given editing rights through these access modules. Is this possible? Thank you for any help.

Comments

bomarmonk’s picture

This could also be achieved with an argument. Right now the arguments "User: User is author," and "User: User authored or commented" are currently available. Is it possible to achieve something like "User: User can edit?"

Thanks again for any suggestions.

miggs’s picture

I was able to get this to work with Taxonomy Access Control. It's kind of a work around, in that I'm not using
if (node_access('update', $data))
I just used some Argument Handling Code to search the term_access table and find what terms a user had update permissions to. I then filter the view to only show those terms. You can check out the code here: http://drupal.org/node/240345
Hopefully that helps.