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