Uploaded image for project: 'Red Hat Internal Developer Platform'
  1. Red Hat Internal Developer Platform
  2. RHIDP-3833

Hide plugin or display appropriate error message when user doesn't have access instead of showing 404 error

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • 1.3
    • UI
    • None
    • RHDH F&UI plugins 3262

      Description of problem:

      **

      When a user does not have access to a specific plugin like bulk import, OCM etc, RHDH displays a 404 error page. This behavior is not ideal, as it can be confusing for the user. Instead, it should either:

      1. Hide the plugin from navbar/sidebar
      2. Display a clear error message indicating that the user does not have the necessary permissions to access the plugin.

      Prerequisites (if any, like setup, operators/versions):

      Steps to Reproduce

      1. Deploy latest version of rhdh
      2. Configure and enable rbac.
      3. Enable plugins like bulk import.
      4. Login to rhdh with user that doesn't have permission to that plugin
      5. Check Sidebar it will show the bulk import plugin
      6. Click on it and a page with ERROR 404: PAGE NOT FOUND will be shown  

      Actual results: ERROR 404: PAGE NOT FOUND

      Expected results: 

      Reproducibility (Always/Intermittent/Only Once): Always

      Build Details: 1.3/latest

      Additional info (Such as Logs, Screenshots, etc):

       

            dsantra12 Debsmita Santra
            skhileri Subhash Khileri
            RHIDP - Frontend Plugins & UI
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: