Render "New Item" in a list based on the context of the current user rights [modified]
-
Hi all. Have searched the articles but couldn't find anything that fits my problem. My problem is that I developed a custom list schema that defines a view that is used for the list WebPart on a WebParts page (not the AllItems or MyItems Pages). The list contains 3 levels of folders and each folder has its own role assignments. Now I wanna hide the "Add Item" link in the toolbar at the bottom of the view for a folder based on the current users' rights. But I couldn't find out how to accomplish this since the <IfHasRights> element within the <Toolbar> element (in schema.xml) just verifies the rights the current user has for the entire list. Did anyone ran into a similar problem or has some tips ? I'm working with MOSS 2007 Enterprise Edition on a Windows 2k3 Server Sytem (both 32bit). I'd appreciate any help or direction giving advices. Greets.
modified on Monday, August 31, 2009 7:49 AM