check if user has permissions to add items to the list in a SharePoint DVWP with XSLT -


is possible check if user has permissions add items list in dvwp when rending xslt?

the idea being see if user has access add , if add link newform page.

you can xslt function ddwrt:ifhasrights(xx) xx permission mask. this:

<xsl:if test="ddwrt:ifhasrights(16)"><tr> <td width="190px" valign="top" class="ms-formlabel"><h3 class="ms-standardheader"><nobr>entry status</nobr></h3></td> <td width="400px" valign="top" class="ms-formbody"><sharepoint:formfield runat="server" id="ff8{$pos}" controlmode="new" fieldname="entry_x0020_status" __designer:bind="{ddwrt:databind('i',concat('ff8',$pos),'value','valuechanged','id',ddwrt:escapedelims(string(@id)),'@entry_x0020_status')}" /><sharepoint:fielddescription runat="server" id="ff8description{$pos}" fieldname="entry_x0020_status" controlmode="new" /></td> </tr> </xsl:if> 

more detailed description can find e.g. here. aware works fine sp2010, sp2013 not in sp online.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -