app/models/visualization/presenter.rb
def privacy_for_vizjson
        return @visualization.privacy if @real_privacy
        case @visualization.privacy
          when Member::PRIVACY_PUBLIC, Member::PRIVACY_LINK
            Member::PRIVACY_PUBLIC
          when Member::PRIVACY_PRIVATE
            Member::PRIVACY_PRIVATE
          when Member::PRIVACY_PROTECTED
            Member::PRIVACY_PROTECTED
        end
      end
# Simplify certain privacy values for the vizjson
Simplify certain privacy values for the vizjson
Simplify certain privacy values for the vizjson
def privacy_for_vizjson
        return @visualization.privacy if @real_privacy
        case @visualization.privacy
          when Member::PRIVACY_PUBLIC, Member::PRIVACY_LINK
            Member::PRIVACY_PUBLIC
          when Member::PRIVACY_PRIVATE
            Member::PRIVACY_PRIVATE
          when Member::PRIVACY_PROTECTED
            Member::PRIVACY_PROTECTED
        end
      end
def privacy_for_vizjson return @visualization . privacy if @real_privacy case @visualization . privacy when Member :: PRIVACY_PUBLIC , Member :: PRIVACY_LINK Member :: PRIVACY_PUBLIC when Member :: PRIVACY_PRIVATE Member :: PRIVACY_PRIVATE when Member :: PRIVACY_PROTECTED Member :: PRIVACY_PROTECTED end end
Simplify certain privacy values for the vizjson
Simplify certain privacy values for the vizjson