lib/blacklight/access_controls/ability.rb
# read implies discover, so discover_groups is the union of read and discover groups
read implies discover, so discover_groups is the union of read and discover groups
read implies discover so discover_groups is the union of read and discover groups
def discover_groups(id)
        doc = permissions_doc(id)
        return [] if doc.nil?
        dg = read_groups(id) | (doc[self.class.discover_group_field] || [])
        Rails.logger.debug("[CANCAN] discover_groups: #{dg.inspect}")
        dg
      end
def discover_groups ( id ) doc = permissions_doc ( id ) return [ ] if doc . nil? dg = read_groups ( id ) | ( doc [ self . class . discover_group_field ] || [ ] ) Rails . logger . debug ( "[CANCAN] discover_groups: #{dg.inspect}" ) dg end
read implies discover, so discover_groups is the union of read and discover groups
read implies discover so discover_groups is the union of read and discover groups
id
<not_specific>