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: Disable My Apps button for users without permission #1165

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

shahmargi12
Copy link
Contributor

@shahmargi12 shahmargi12 commented Sep 27, 2024

Description

This PR addresses the issue where users without the required permissions could still see and click buttons in the home page slider, which would lead to Unauthorized pages.

The following changes have been made:

  • Disabled buttons in the slider (including "My Apps") for users who do not have the necessary permissions.
  • Ensured that these buttons remain visible but non-clickable for unauthorized users, providing a clear visual indicator that they do not have access.
  • The change prevents the display of error pages when users attempt to click on restricted sections.

Why

This change improves the user experience by preventing unauthorized access pages for users without permission.

Issue

#1157

Checklist

  • I have followed the contributing guidelines
  • I have performed a self-review of my own code
  • I have successfully tested my changes locally

Copy link

sonarcloud bot commented Oct 8, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant