I have a feature deployed in my Moss 07 site. Part of the feature checks if the user is a site collection admin in the FeatureDeactivating event. If the user is not a site collection admin, I reactivate the feature using the following:
CurrentWeb.Features.Add(New Guid("E44B5574-F6BD-4dee-B5DB-DC2D0D873893"), True)
The problem is when I click Deactivate, the status shows the feature has been deactivated, but it has been reactivated since I'm not a site collection admin. So the code is working correctly but the status is displaying incorrect. Is there any way around this?
Thanks!