瀏覽代碼

Visit template - list only if is_active

Vijayakrishnan 3 年之前
父節點
當前提交
23f0c16ce5
共有 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() {