Closed (fixed)
Project:
Nodeaccess
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Nov 2007 at 18:04 UTC
Updated:
29 Aug 2008 at 19:46 UTC
Hello,
i wonder if it´s possible to create a list of all nodes that a user is allowed to edit.
Comments
Comment #1
jonas28 commentedYes, it´s possible to to create a list of all nodes a user is allowed to edit:
Comment #2
ymmatt commentedThis code didn't work for me, I prefer to use "db_rewrite_sql" as I think it is suggested by the developers.
I also like to use "pager_query" so that if you have a lot of editable nodes it is more manageable.
I believe that I expanded the above functionality quite a bit, especially if you use roles.
The following code works for me but it may not be pretty, clean it up as you wish:
Comment #3
process91 commentedThanks for your help! I thought I would change just a couple things about it. When I added it as the administrator I got several MySQL errors since the administrator can edit everything. So I added a line that checks for the administrator and also added some additional output lines.
Comment #4
shanefjordan commentedLooking through this, the issue I have is that it only displays for the very first group. Shouldn't this be setup to display for each group that i'm in. I will work on it and see what I can come up with.
Thanks,
Shane
Comment #5
shanefjordan commentedOnce again, there is probably a better way to do this, but this works and displays it for all groups that the user has. One thing to note, is that this is giving me more pages than what I have content on. I imagine this is a setting somewhere in one of the functions, but i'm not sure which one and didn't dig that far into it.