TreeSecurityProviderFilterDataSetByClassPermissions Method |
Filters all tables of the given DataSet and returns only those records for which the user was granted with required permission.
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 11.0.0
Syntaxpublic static DataSet FilterDataSetByClassPermissions(
DataSet sourceDataSet,
NodePermissionsEnum permission,
UserInfo userInfo,
bool allowOwner = false
)
Parameters
- sourceDataSet
- Type: System.DataDataSet
Source DataSet - permission
- Type: CMS.DocumentEngineNodePermissionsEnum
Required permission - userInfo
- Type: CMS.MembershipUserInfo
UserInfo instance - allowOwner (Optional)
- Type: SystemBoolean
If true, documents the owner of which is the given user are not filtered out even if the user has not the permission
Return Value
Type:
DataSet
See Also