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.




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: