2659: Use Collection.creatable? to toggle selection actions.
authorTom Clegg <tom@curoverse.com>
Tue, 3 Feb 2015 19:13:52 +0000 (14:13 -0500)
committerTom Clegg <tom@curoverse.com>
Tue, 3 Feb 2015 19:13:52 +0000 (14:13 -0500)
apps/workbench/app/views/collections/_show_files.html.erb

index 125896b8fd89ef01fa96a63c7c760cc0336e5181..75293fcd7ed08fd1a9e17fe107ec3920d3face5e 100644 (file)
@@ -20,9 +20,8 @@ function unselect_all_files() {
 %>
 
 <div class="selection-action-container" style="padding-left: <%=padding_left%>">
-  <% if !defined? no_checkboxes or !no_checkboxes %>
+  <% if Collection.creatable? and (!defined? no_checkboxes or !no_checkboxes) %>
   <div class="row">
-    <% if current_user %>
     <div class="pull-left">
       <div class="btn-group btn-group-sm">
         <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Selection... <span class="caret"></span></button>
@@ -46,7 +45,6 @@ function unselect_all_files() {
     <div class="pull-right">
       <input class="form-control filterable-control" data-filterable-target="ul#collection_files" id="file_regex" name="file_regex" placeholder="filename regex" type="text"/>
     </div>
-    <% end %>
   </div>
   <p/>
   <% end %>