Hi,
here is an API example which you can use to check document type permissions:
private bool CheckDocTypePermissions()
{
// Get the user
UserInfo user = UserInfoProvider.GetUserInfo("CMSEditor");
if (user != null)
{
// Check permissions and perform an action according to the result
if (UserInfoProvider.IsAuthorizedPerClass("CMS.MenuItem", "Read", CMSContext.CurrentSiteName, user))
{
apiCheckDocTypePermissions.InfoMessage = "User 'CMSEditor' is allowed to read document type 'MenuItem'.";
}
else
{
apiCheckDocTypePermissions.InfoMessage = "User 'CMSEditor' is not allowed to read document type 'MenuItem'.";
}
return true;
}
return false;
}
More API examples you can find here:
http://domain.com/CMSAPIExamples/Default.aspxBest regards,
Ivana Tomanickova