Skip to content

Conversation

@sheensantoscapadngan
Copy link
Member

@sheensantoscapadngan sheensantoscapadngan commented May 27, 2025

Description 📣

This PR adds proper notice for non-admins trying to do privilege upgrade
image

Type ✨

  • Bug fix
  • New feature
  • Improvement
  • Breaking change
  • Documentation

Tests 🛠️

# Here's some code block to paste some code snippets

@maidul98
Copy link
Collaborator

maidul98 commented May 27, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

Added proper notice and access control for non-admin users attempting to upgrade the privilege system in the organization access management page.

  • Added role-based validation in frontend/src/pages/organization/AccessManagementPage/components/UpgradePrivilegeSystemModal/UpgradePrivilegeSystemModal.tsx to prevent non-admin users from upgrading privileges
  • Added visual feedback showing current role and disabled upgrade button for non-admin users
  • Consider adding documentation in /docs to help customers discover this privilege upgrade feature and its requirements

1 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

@maidul98 maidul98 merged commit 7994034 into main May 28, 2025
5 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.

3 participants