Skip to content

Conversation

@odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented Aug 4, 2025

What do these changes do?

This PR updates the frontend to let Admins open the PO center. Changes in the backend need to follow so that the endpoints are open to the role.

Related issue/s

How to test

Dev-ops

@odeimaiz odeimaiz self-assigned this Aug 4, 2025
@odeimaiz odeimaiz changed the title 🎨 [Frontend] Enh: admins are also pos 🎨 [Frontend] Enh: admins are also pos Aug 4, 2025
@odeimaiz odeimaiz marked this pull request as ready for review August 4, 2025 12:28
@odeimaiz odeimaiz added this to the Voyager milestone Aug 4, 2025
@odeimaiz odeimaiz added t:enhancement Improvement or request on an existing feature a:frontend issue affecting the front-end (area group) labels Aug 4, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 4, 2025

@odeimaiz odeimaiz requested a review from Copilot August 4, 2025 12:52
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enhances the frontend to allow administrators to access the PO (Product Owner) center. The key change is updating the role permission logic so that admin users are treated as having product_owner privileges, enabling them to access PO-specific functionality.

  • Expands isProductOwner() to include admin role alongside product_owner
  • Reorganizes menu item order for better grouping by permission hierarchy
  • Fixes a minor spelling error in an error message

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
osparc/data/Permissions.js Updated isProductOwner() method to include admin role
osparc/navigation/UserMenu.js Reordered menu items to reflect permission hierarchy (tester, po, admin)
osparc/po/UsersPending.js Fixed spelling error in confirmation message

@odeimaiz odeimaiz marked this pull request as draft August 4, 2025 12:53
@odeimaiz odeimaiz marked this pull request as ready for review August 4, 2025 13:57
@odeimaiz odeimaiz merged commit 4eb6476 into ITISFoundation:master Aug 4, 2025
58 checks passed
@odeimaiz odeimaiz deleted the enh/admins-are-pos branch August 4, 2025 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a:frontend issue affecting the front-end (area group) t:enhancement Improvement or request on an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants