I have a custom feature. In the FeatureActivated event receiver, I am trying to check if the user is a Term Store Administrator or not and if not, I am throwing an SPException. I actually don't want this feature to be activated (I know Feature Activated gets called asynchronously after the feature is activated). At least, the feature should get deactivated automatically. But it is not happening. Is this possible?
I am thinking of deactivating the feature programmatically in the FeatureActivated on exception, but I am not sure, whether this will work or not, since I am dealing with the same feature.
Can anyone please help?
Ven