diff --git a/app/models/medium.rb b/app/models/medium.rb index 034f41da7..d67036461 100644 --- a/app/models/medium.rb +++ b/app/models/medium.rb @@ -393,12 +393,6 @@ def self.similar_courses(search_string) end end - def restricted? - return false unless teachable - - teachable.restricted? - end - # protected items are items of type 'pdf_destination' inside associated to # this medium that are referred to from other media or from an entry # within the table of contents of the video associated to this medium. @@ -726,7 +720,7 @@ def locked? released == "locked" end - def restricted? # rubocop:todo Lint/DuplicateMethods + def restricted? released == "subscribers" end