I'm trying to set hidden items to true for a certain role. There's a very similar question here. I thought this might be a caching issue so I tried setting UserOptions.View.ShowHiddenItems
how it is set here but that didn't work out either.
After setting the value both ways I tried manually reloading all my site's registries and I also tried using user.Profile.Reload()
to see if that would update the value of UserOptions.View.ShowHiddenItems
to be true but that didn't work out either.