if (!CurrentPage.ACL.Exists(roles.Items[i].Value)){
//This code work fin
ac = new AccessControlEntry(roles.Items[i].Value, AccessLevel.Read, SecurityEntityType.Role);
CurrentPage.ACL.Add(ac);
CurrentPage.ACL.Save();
}
But how can I remove a role from ACL on CurrentPage?
//I have tryed this, but it did not work.
if (CurrentPage.ACL.Exists(roles.Items[i].Value))
{
CurrentPage.ACL.Remove(roles.Items[i].Value);
CurrentPage.ACL.Save();
}