Skip to content

Comments

PM-3904 Restrict engagements tab to only admins#1730

Merged
kkartunov merged 1 commit intodevelopfrom
PM-3904
Feb 17, 2026
Merged

PM-3904 Restrict engagements tab to only admins#1730
kkartunov merged 1 commit intodevelopfrom
PM-3904

Conversation

@himaniraghav3
Copy link
Collaborator

@himaniraghav3 himaniraghav3 commented Feb 17, 2026

Restrict non admins from accessing the Engagements tab. TMs no longer have access.
However, the nested routes for engagements in Projects still stay the same. Both admins and TMs can access those.

/engagements : Only admins
/projects/{:projectId}/engagements : Both admins and TMs

@himaniraghav3 himaniraghav3 self-assigned this Feb 17, 2026
}
if (pathname === '/engagements') {
return canViewEngagements ? 3 : 0
return isAdmin ? 3 : 0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[❗❗ correctness]
The logic change here from canViewEngagements to isAdmin could potentially alter the intended access control. Ensure that this change aligns with the business requirements, as it restricts access to the '/engagements' path strictly to admins, whereas previously it was accessible to both admins and talent managers.

this.props.unloadProjects()
this.setState({ currentTab: 2 })
} else if (tab === 3 && canViewEngagements) {
} else if (tab === 3 && isAdmin) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[❗❗ correctness]
Similar to the change on line 153, this modification restricts access to the '/engagements' tab to only admins. Verify that this change is intentional and aligns with the updated access control requirements.

)()}
/>
{canAccessEngagements && (
{isAdmin && (

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ correctness]
The change from canAccessEngagements to isAdmin restricts access to the /engagements route to only admins. Ensure that this change aligns with the intended access control policy, as it removes access for Talent Managers.

/>
)}
{!canAccessEngagements && (
{!isAdmin && (

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ correctness]
The change from !canAccessEngagements to !isAdmin means that non-admin users will see the warning message. Verify that this behavior is intended, as it alters the access logic for non-admin users.

@kkartunov kkartunov merged commit 1d687ff into develop Feb 17, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants