func (f FeatureFlag) UserHasAccess(user uint32) bool {
	// A user has access:
	// - if the feature is enabled
	// - if the feature is partially enabled and he has been given access explicity
	// - if the feature is partially enabled and he is in the allowed percentage
	return f.IsEnabled() || (f.IsPartiallyEnabled() && (f.userInUsers(user) || f.userIsAllowedByPercentage(user)))
}
// UserHasAccess checks if a user has access to a feature
UserHasAccess checks if a user has access to a feature
// UserHasAccess checks if a user has access to a feature
func (f FeatureFlag) UserHasAccess(user uint32) bool {
	return f.IsEnabled() || (f.IsPartiallyEnabled() && (f.userInUsers(user) || f.userIsAllowedByPercentage(user)))
}
func ( f FeatureFlag ) UserHasAccess ( user uint32 ) bool { return f . IsEnabled ( ) || ( f . IsPartiallyEnabled ( ) && ( f . userInUsers ( user ) || f . userIsAllowedByPercentage ( user ) ) ) }
UserHasAccess checks if a user has access to a feature
UserHasAccess checks if a user has access to a feature
// A user has access: // - if the feature is enabled // - if the feature is partially enabled and he has been given access explicity // - if the feature is partially enabled and he is in the allowed percentage