Sha256: b56ae1d8ed668fe5734aa1e8ae1a394fb02be6dcd992e79baaa2bb32a83334dc
Contents?: true
Size: 1.28 KB
Versions: 5
Compression:
Stored size: 1.28 KB
Contents
# frozen_string_literal: true module Blacklight module AccessControls class Config def initialize @user_model = default_user_model @discover_group_field = default_discover_group_field @discover_user_field = default_discover_user_field @read_group_field = default_read_group_field @read_user_field = default_read_user_field @download_group_field = default_download_group_field @download_user_field = default_download_user_field end attr_accessor :user_model attr_accessor :discover_group_field, :discover_user_field attr_accessor :read_group_field, :read_user_field attr_accessor :download_group_field, :download_user_field def default_user_model 'User' end def default_discover_group_field "discover_access_group_ssim" end def default_discover_user_field "discover_access_person_ssim" end def default_read_group_field "read_access_group_ssim" end def default_read_user_field "read_access_person_ssim" end def default_download_group_field "download_access_group_ssim" end def default_download_user_field "download_access_person_ssim" end end end end
Version data entries
5 entries across 5 versions & 1 rubygems