Explorar o código

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

Data Collections Show for Anonymous Users
Stephen Ficklin %!s(int64=6) %!d(string=hai) anos
pai
achega
e0f222dbd9

+ 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') {