浏览代码

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

Data Collections Show for Anonymous Users
Stephen Ficklin 6 年之前
父节点
当前提交
e0f222dbd9
共有 1 个文件被更改,包括 4 次插入0 次删除
  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') {