From 6123a53f01ffe5a96bd646c989d02e4c1b151c12 Mon Sep 17 00:00:00 2001 From: mahan Date: Tue, 16 Dec 2025 17:15:22 +0330 Subject: [PATCH] fix: update permission check for project board visibility --- .../Queries/ProjectBoardList/ProjectBoardListQueryHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProgramManager/src/Application/GozareshgirProgramManager.Application/Modules/Projects/Queries/ProjectBoardList/ProjectBoardListQueryHandler.cs b/ProgramManager/src/Application/GozareshgirProgramManager.Application/Modules/Projects/Queries/ProjectBoardList/ProjectBoardListQueryHandler.cs index 740758be..5a085060 100644 --- a/ProgramManager/src/Application/GozareshgirProgramManager.Application/Modules/Projects/Queries/ProjectBoardList/ProjectBoardListQueryHandler.cs +++ b/ProgramManager/src/Application/GozareshgirProgramManager.Application/Modules/Projects/Queries/ProjectBoardList/ProjectBoardListQueryHandler.cs @@ -31,7 +31,7 @@ public class ProjectBoardListQueryHandler : IBaseQueryHandler x.AdditionalTimes).AsQueryable(). Include(x => x.Skill).AsQueryable(); - if (!_authHelper.HasPermission(ProgramManagerPermissionCode.Board.All.ViewAll)) + if (!_authHelper.HasPermission(ProgramManagerPermissionCode.Board.ViewAllUsersProjects.Code)) { queryable = queryable.Where(x => x.CurrentAssignedUserId == currentUserId); }