문제

We created a customized data form web part, and there are some items don't want user with specified permission level (or group) to view.

Could give some help on how to do this, or whether we could do this in data form web part?

도움이 되었습니까?

해결책

I assume you have setup User Profile Syncronization. There is a Filter Web Part for that, which should be able to benefit you from the Connectable web parts framework. Have a look here to see how is being used http://www.bjw.co.nz/developer/sharepoint-2010/97-using-a-current-user-filter-on-a-list

To filter out items based on assigned permissions you could use the extension function in ddwrt: ifHasRights example here http://sharepointjim.wordpress.com/2009/10/19/sharepoint-data-view-conditional-formatting-based-on-user-permissions-ifhasrights/

Otherwise you can only do it by code.

Hope it helps, C:\Marius

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top