Sha256: 65fdac1ed6f8cfbf18f7e8b3e54bba0220aad195b24f29111fee41557493707d
Contents?: true
Size: 549 Bytes
Versions: 3
Compression:
Stored size: 549 Bytes
Contents
module My class SharesController < MyController self.solr_search_params_logic += [ :show_only_shared_files, ] def show_only_shared_files(solr_parameters, user_parameters) solr_parameters[:fq] ||= [] solr_parameters[:fq] += [ "-" + ActiveFedora::SolrQueryBuilder.construct_query_for_rel(depositor: current_user.user_key) ] end def index super @selected_tab = :shared end protected def search_action_url *args sufia.dashboard_shares_url *args end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sufia-6.0.0.rc2 | app/controllers/my/shares_controller.rb |
sufia-6.0.0.rc1 | app/controllers/my/shares_controller.rb |
sufia-6.0.0.beta1 | app/controllers/my/shares_controller.rb |