license_needs_review?

in lib/licensed/commands/status.rb [66:87]


      def license_needs_review?(app, cached_record)
        
        return false if app.reviewed?(cached_record)
        
        return false if app.allowed?(cached_record["license"])

        
        

        
        return true unless cached_record["license"] == "other"

        licenses = cached_record.licenses.map { |license| license_from_text(license.text) }

        
        
        return true unless licenses.length > 1

        
        licenses.any? { |license| !app.allowed?(license) }
      end