Skip to content
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

Fix managed cluster access button for read only users #146

Merged
merged 11 commits into from
Dec 5, 2022

Conversation

mabhi
Copy link
Contributor

@mabhi mabhi commented Nov 27, 2022

What does this PR change?

  • Fixes Cluster manage buttons access for read only user

Does the PR depend on any other PRs or Issues? If yes, please list them.

  • No

Checklist

I confirm, that I have...

  • Read and followed the contributing guide in CONTRIBUTING.md
  • Added tests for this PR
  • Formatted the code using npm run format (if applicable)
  • Updated documentation on the Paralus docs site (if applicable)
  • Updated CHANGELOG.md

…f user in cluster list and menu actions in tabular mode
…f user in cluster list and menu actions in tabular mode

Fix access to cluster manage buttons shown for READ-ONLY permission of user in cluster list and menu actions in tabular mode

Fix access to cluster manage buttons shown for READ-ONLY permission of user in cluster list and menu actions in tabular mode
…f user in cluster list and menu actions in tabular mode
Copy link
Contributor

@niravparikh05 niravparikh05 left a comment

Choose a reason for hiding this comment

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

roles which are organization scoped are applicable to all projects

src/app/routes/edges/routes/PrivateEdgeList/index.js Outdated Show resolved Hide resolved
…f user in cluster list and menu actions in tabular mode.

Added filter of oraganization scoped roles during validation
@mabhi mabhi requested review from niravparikh05 and removed request for akshay196 November 29, 2022 07:52
niravparikh05
niravparikh05 previously approved these changes Dec 1, 2022
Copy link
Contributor

@niravparikh05 niravparikh05 left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@niravparikh05 niravparikh05 left a comment

Choose a reason for hiding this comment

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

can we not show New Cluster option if user does not have cluster write access as well

@mabhi
Copy link
Contributor Author

mabhi commented Dec 1, 2022

@niravparikh05 Yes, we can disable or hide the new cluster option. I have added the changes

Copy link
Contributor

@niravparikh05 niravparikh05 left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -1197,8 +1197,8 @@ class PrivateEdgeList extends React.Component {
const { order, orderBy, selected, rowsPerPage, page } = this.state;
const { match, UserSession, Projects, sshEdges, partnerDetail } =
this.props;
console.log(this.props);
Copy link
Contributor

Choose a reason for hiding this comment

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

remove this

@@ -1197,8 +1197,8 @@ class PrivateEdgeList extends React.Component {
const { order, orderBy, selected, rowsPerPage, page } = this.state;
const { match, UserSession, Projects, sshEdges, partnerDetail } =
this.props;
console.log(this.props);
Copy link
Contributor

Choose a reason for hiding this comment

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

let's remove this if it was used just for debugging

@niravparikh05 niravparikh05 merged commit 36e75ea into paralus:main Dec 5, 2022
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.

Cluster manage buttons shown for Namespace read only user
2 participants