public void AssertFeatures(Feature usesFeatures) { if (Config.EnableFeatures == Feature.All) return; if (!HasFeature(usesFeatures)) { throw new UnauthorizedAccessException( $"'{usesFeatures}' Features have been disabled by your administrator"); } }