Can anyone give me some tips?

I am trying to query the database to get a list of nodes that a certain user is able to edit.

How can this be done? What techniques are available ?

Would I have to do a db query and then check access per db item? Or is there a way to do table joins?

The reason for this is so that I can make a custom admin node list module to replace the built in one.

Reasons for this are:
1) default one can't be viewed if you dont have "administer nodes" (which decideds to give access to everything.. stupid)
2) with views it is possible (tip by omseone on the forum), but you can't hide rows if the user doesn't have edit rights. It is possible to hide the rows in the render functions, but then you could come into problems such as all rows being hidden and the pagnation breaking down.

So any ideas anyone?

Comments

thepanz’s picture

Maybe you can subscribe or provide a patch for this Views2 issue : Filter Content to what the Current User can Edit.

Regards

-thePanz-