Class: Hyrax::Forms::Widgets::AdminSetVisibility
- Inherits:
-
Object
- Object
- Hyrax::Forms::Widgets::AdminSetVisibility
- Defined in:
- app/forms/hyrax/forms/widgets/admin_set_visibility.rb
Instance Method Summary collapse
-
#options ⇒ Object
Visibility options for permission templates.
Instance Method Details
#options ⇒ Object
Visibility options for permission templates
7 8 9 10 11 12 13 14 |
# File 'app/forms/hyrax/forms/widgets/admin_set_visibility.rb', line 7 def i18n_prefix = "hyrax.admin.admin_sets.form_visibility.visibility" # NOTE: Visibility 'varies' = '' implies no constraints [[Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_PUBLIC, I18n.t('.everyone', scope: i18n_prefix)], ['', I18n.t('.varies', scope: i18n_prefix)], [Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_AUTHENTICATED, I18n.t('.institution', scope: i18n_prefix)], [Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_PRIVATE, I18n.t('.restricted', scope: i18n_prefix)]] end |