Browse Source

Merge pull request #592 from tripal/591-tv3-anon_collections

Data Collections Show for Anonymous Users
Stephen Ficklin 6 years ago
parent
commit
e0f222dbd9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tripal/views_handlers/tripal_views_handler_area_collections.inc

+ 4 - 0
tripal/views_handlers/tripal_views_handler_area_collections.inc

@@ -16,6 +16,10 @@ class tripal_views_handler_area_collections extends views_handler_area_result {
     if (!$collections_enabled) {
       return '';
     }
+    
+    if (user_is_anonymous()) {
+      return '';
+    }
 
     // We need a specific form to work with Tripal content types and the tripal_views_query plugin.
     if ($this->query->plugin_name == 'tripal_views_query') {