<commit_before>module Sufia::Forms
  class WorkForm < CurationConcerns::Forms::WorkForm
    delegate :depositor, :permissions, to: :model

    def rendered_terms
      terms - [:files, :visibility_during_embargo, :embargo_release_date,
               :visibility_after_embargo, :visibility_during_lease,
               :lease_expiration_date, :visibility_after_lease]
    end
  end
end<commit_msg>Prevent the rendering of the extra visibility textbox in the Generic Work edit form. Visibility is handled via the Persmissions form. Fixes #1513<commit_after>module Sufia::Forms
  class WorkForm < CurationConcerns::Forms::WorkForm
    delegate :depositor, :permissions, to: :model

    def rendered_terms
      terms - [:files, :visibility_during_embargo, :embargo_release_date,
               :visibility_after_embargo, :visibility_during_lease,
               :lease_expiration_date, :visibility_after_lease, :visibility]
    end
  end
end
{'fraction_non_alphanumeric': 0.07348242811501597, 'fraction_numerical': 0.004259850905218318, 'mean_word_length': 4.164835164835165, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6324883', 'n_tokens_mistral': 293, 'n_tokens_neox': 270, 'n_words': 68}