All Questions
1 question
3
votes
1
answer
539
views
How to remove admin role permissions programatically?
I tried changing it via
protected void RemoveRoles(User user)
{
using (new SecurityDisabler())
{
UserRoles.FromUser(user).RemoveAll();
UserProfile profile =...