Scenario:
Links under ListViewWebPart such as 'Add new discussion' needs to be hidden some times based on specific rights.
Implementation:
When you see the ListViewWebPart under xslt mode or using SPD you will find out the CDATA content uder <ListViewXml></ListViewXml> tags.
In general, for the above mentioned example 'Add new discussion' resides under the rights group as below.
<IfHasRights>
<RightsChoices>
<RightsGroup PermAddListItems="required"/>
</RightsChoices>
<Then>
<HTML> To create a new item, click 'Add new discussion' below.
</HTML>
</Then>
</IfHasRights>
here instead of PermAddListItems which comes with Read Level permissions, i would like to make sure that Read level doesnt have access to 'Add new discussion'. So, i will change replace PermAddListItems="required" to PermManageLists="required".
Now, think of as many places as you can use this.
A complete list of RightsGroup is under this location.
Links under ListViewWebPart such as 'Add new discussion' needs to be hidden some times based on specific rights.
Implementation:
When you see the ListViewWebPart under xslt mode or using SPD you will find out the CDATA content uder <ListViewXml></ListViewXml> tags.
In general, for the above mentioned example 'Add new discussion' resides under the rights group as below.
<IfHasRights>
<RightsChoices>
<RightsGroup PermAddListItems="required"/>
</RightsChoices>
<Then>
<HTML> To create a new item, click 'Add new discussion' below.
</HTML>
</Then>
</IfHasRights>
here instead of PermAddListItems which comes with Read Level permissions, i would like to make sure that Read level doesnt have access to 'Add new discussion'. So, i will change replace PermAddListItems="required" to PermManageLists="required".
Now, think of as many places as you can use this.
A complete list of RightsGroup is under this location.
Comments