浏览代码

fixed visit templates query

= 3 年之前
父节点
当前提交
0510437bbc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Models/Pro.php

+ 1 - 1
app/Models/Pro.php

@@ -140,7 +140,7 @@ class Pro extends Model
 
     public function visitTemplates() {
         //TODO: use visit access
-        return VisitTemplate::all();
+        return VisitTemplate::where('is_active', true)->get();
     }
 
     public function currentWork() {