Removing a user from ignore list

  Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic! Mail us feedback on this topic!  

The following sample code shows how you can remove a user from current user's ignore list using the API.

 

[C#]

 

using CMS.Messaging;

using CMS.CMSHelper;

using CMS.SiteProvider;

using CMS.GlobalHelper;

 

...

 

  // Removes administrator from CurrentUser's Ignore list

  UserInfo user = UserInfoProvider.GetUserInfo("administrator");

  IgnoreListInfoProvider.RemoveFromIgnoreList(CMSContext.CurrentUser.UserID, user.UserID);

 

Page url: http://devnet.kentico.com/docs/5_5r2/devguide/index.html?api_removing_user_from_ignore_list.htm