سؤال

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