app/helpers/assays_helper.rb
#only data files authorised for show, and belonging to projects matching current_user
only data files authorised for show, and belonging to projects matching current_user
only data files authorised for show and belonging to projects matching current_user
def data_files_for_assay_association
    data_files=DataFile.find(:all, :include => :asset)
    data_files=data_files.select { |df| current_user.person.member_of?(df.projects) }
    Authorization.authorize_collection("view", data_files, current_user)
  end
def data_files_for_assay_association data_files = DataFile . find ( :all , :include => :asset ) data_files = data_files . select { | df | current_user . person . member_of? ( df . projects ) } Authorization . authorize_collection ( "view" , data_files , current_user ) end
only data files authorised for show, and belonging to projects matching current_user
only data files authorised for show and belonging to projects matching current_user