Skip to content

Commit

Permalink
remove duplicated restricted? method
Browse files Browse the repository at this point in the history
  • Loading branch information
fosterfarrell9 committed Dec 6, 2023
1 parent cb2fa14 commit 84ad08f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions app/models/medium.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -726,7 +720,7 @@ def locked?
released == "locked"
end

def restricted? # rubocop:todo Lint/DuplicateMethods
def restricted?
released == "subscribers"
end

Expand Down

0 comments on commit 84ad08f

Please sign in to comment.