Pool-Escrow / PWA

https://poolparty.cc
0 stars 0 forks source link

bug: Inconsistent User Role-based UI Element Visibility #83

Open ottodevs opened 2 months ago

ottodevs commented 2 months ago

👤 User Story

As a user of the Pool application, I want to see only the UI elements relevant to my role so that I can interact with the application securely and without confusion.

📝 Bug Description

There are inconsistencies in the visibility of UI elements based on user roles. Some elements, particularly admin functions like the Create Pool button, may be visible to unauthorized users. This issue affects the security and user experience of the application.

🔄 Steps to Reproduce

  1. Log in as a non-admin user.
  2. Navigate through various pages of the application, particularly the main dashboard or pool listing page.
  3. Observe if any admin-only elements (e.g., Create Pool button) are visible.
  4. If possible, attempt to interact with these elements.
  5. Repeat the process with different user roles to identify any inconsistencies.

🎯 Expected Behavior

📸 Screenshots or GIFs

No response

📘 Additional Context

🔗 Related Issues

No response

👥 Mention

No response

dantgw commented 2 months ago

I didn't manage to replicate the issue. I'm not sure if this issue was present in the past, and @ottodevs has already fixed the issue.

Scenarios I've tried

I've added a test case for checking the visibility of the 'Create Pool' button.