From b54e0bfe3f45563465278c39714d6cf2e6853cd2 Mon Sep 17 00:00:00 2001 From: "venbatechnologies@gmail.com" Date: Sat, 22 Sep 2018 15:43:09 +0530 Subject: [PATCH] staff access --- Apollo/api/application/models/Student_model.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Apollo/api/application/models/Student_model.php b/Apollo/api/application/models/Student_model.php index b3dfd5e8..639a8d87 100755 --- a/Apollo/api/application/models/Student_model.php +++ b/Apollo/api/application/models/Student_model.php @@ -1024,6 +1024,8 @@ class Student_model extends CI_Model { $this->db->group_by('t1.StaffID'); $this->db->where('t1.BranchCode', $loginBranchId); + $this->db->where('t1.IsActive','1'); + $this->db->where('t2.IsActive','1'); // $this->db->where('t1.ListCode', EMPLOYEE); $this->db->order_by('t1.CreatedOn', 'DESC'); $empDetails = $this->db->get();