diff --git a/Tiobon.Core.Services/Ghre/Ghre_OpenClassServices.cs b/Tiobon.Core.Services/Ghre/Ghre_OpenClassServices.cs index 1e6b2cdf..611ad1cf 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_OpenClassServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_OpenClassServices.cs @@ -458,7 +458,8 @@ public class Ghre_OpenClassServices : BaseServices it.Id == entity.ExamId) .ExecuteCommandAsync(); diff --git a/Tiobon.Core.Services/Ghre/Ghre_RequestServices.cs b/Tiobon.Core.Services/Ghre/Ghre_RequestServices.cs index 8e3714ed..a9c4dda9 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_RequestServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_RequestServices.cs @@ -308,7 +308,7 @@ FROM Ghre_Request A LEFT JOIN Ghro_Dept B ON A.DeptId = B.DeptID LEFT JOIN Ghra_Staff C ON A.ApplicantId = C.StaffID LEFT JOIN Ghro_Dept D ON C.DeptID = D.DeptID - WHERE A.IsEnable = 1) A {conditions} + WHERE A.IsEnable = 1 AND dbo.FUserDataBelongPriv ({App.User.ID}, A.DataBelongID, NULL) = 1) A {conditions} GROUP BY CourseName, YearMonth1, DeptName, @@ -350,7 +350,7 @@ FROM Ghre_Request A LEFT JOIN Ghro_Dept B ON A.DeptId = B.DeptID LEFT JOIN Ghra_Staff C ON A.ApplicantId = C.StaffID LEFT JOIN Ghro_Dept D ON C.DeptID = D.DeptID - WHERE A.IsEnable = 1) A {conditions} + WHERE A.IsEnable = 1 AND dbo.FUserDataBelongPriv ({App.User.ID}, A.DataBelongID, NULL) = 1) A {conditions} GROUP BY CourseName, YearMonth1, DeptName,