Skip to content

Commit 9e7cf54

Browse files
Fixed the permission logic to view task extension count
1 parent 8fb5ef2 commit 9e7cf54

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/components/TeamMemberTasks/TeamMemberTask.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,8 @@ const TeamMemberTask = React.memo(
9090
const isAllowedToResolveTasks =
9191
rolesAllowedToResolveTasks.includes(userRole) || dispatch(hasPermission('resolveTask'));
9292

93-
// this variable is used to check the permission to view task extension count for a role or user
94-
const isAllowedToSeeDeadlineCount =
95-
rolesAllowedToSeeDeadlineCount.includes(userRole) || dispatch(hasPermission('viewTaskDeadlineCount'));
93+
// this variable is used to check the permission to view task extension count for a user
94+
const isAllowedToSeeDeadlineCount = dispatch(hasPermission('viewTaskDeadlineCount'));
9695

9796
const canGetWeeklySummaries = dispatch(hasPermission('getWeeklySummaries'));
9897
const canSeeReports = rolesAllowedToResolveTasks.includes(userRole)||dispatch(hasPermission('getReports'));

0 commit comments

Comments
 (0)