-
Notifications
You must be signed in to change notification settings - Fork 32
🎨 [Frontend] Hide some pages in Study/Template details when user has no write access #8331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🧪 CI InsightsHere's what we observed from your CI run for 43b6f32. ✅ Passed Jobs With Interesting Signals
|
There was a problem hiding this 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 implements access control for study-like resources by hiding certain pages when users don't have write access. The changes focus on adding permission checks to prevent read-only users from accessing pages that require modification permissions.
- Adds a new
isStudyLikeutility function to identify resources that need permission checks - Removes the Message Templates page from the Platform Organization (PO) Center
- Implements write access checks for multiple pages in Resource Details (Billing, Permissions, Services Updates, Services Boot Options)
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
osparc/utils/Resources.js |
Adds isStudyLike helper function to group study, template, tutorial, and hypertool resources |
osparc/po/POCenter.js |
Removes the Message Templates page functionality |
osparc/dashboard/ResourceDetails.js |
Adds write permission checks to hide pages from read-only users |
services/static-webserver/client/source/class/osparc/dashboard/ResourceDetails.js
Outdated
Show resolved
Hide resolved
services/static-webserver/client/source/class/osparc/dashboard/ResourceDetails.js
Outdated
Show resolved
Hide resolved
services/static-webserver/client/source/class/osparc/dashboard/ResourceDetails.js
Outdated
Show resolved
Hide resolved
…re into enh/hide-some-tabs
|



What do these changes do?
In another effort to lower the entry barrier to the platform, this PR hides some tabs (Billing, Services Updates, Boot Options and Permissions (not sure if we should also hide the Conversations?)) in the window that pops up when the users clicks on a Tutorial that has no write access.
Related issue/s
How to test
Dev-ops