TreeSecurityProvider FilterDataSetByPermissions Method (DataSet,  NodePermissionsEnum , UserInfo, Boolean, String, Int32)Kentico 8.1 API Reference
Filters all tables of the given DataSet and returns records with flag columns to identify if user was granted with required permissions.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

sourceDataSet
Type: OnlineSystem.Data DataSet
Source DataSet
permissions
Type:  CMS.DocumentEngine NodePermissionsEnum 
List of required permission
userInfo
Type: CMS.Membership UserInfo
Current user info object
allowOwner
Type: OnlineSystem Boolean
If true, documents the owner of which is the given user are not filtered out even if the user has not the permission
cultureCodes
Type: OnlineSystem String
Culture codes separated by ';' to perform permissions check separately for each culture
topN (Optional)
Type: OnlineSystem Int32
Expected maximum of records to return

Return Value

Type: OnlineDataSet
See Also