edulution-io / edulution-ui

https://edulution.io/
2 stars 0 forks source link

Unable to Retrieve User Details for Exam Users - Confusing Error Notifications #219

Open Maddi02 opened 13 hours ago

Maddi02 commented 13 hours ago

Description:

When logging in with an exam user, retrieving user details fails, resulting in the following error:

This behavior might make sense in this use case, as exam users may not require access to detailed user information. However, the resulting error notifications are confusing and do not clearly convey why the request fails.

Expected Behavior:

When logging in with an exam user, if user details are not available by design, the system should return a clearer message indicating that user details are restricted for exam users. This would improve the user experience and reduce confusion.

Steps to Reproduce:

  1. Log in using an exam user account.
  2. Attempt to access user details.
  3. Observe the 502 error and confusing error message.

Suggested Solution:

Modify the error handling to provide a clearer notification, such as "User details are restricted for exam users," when access to user details is intentionally blocked for exam accounts. This would help users understand the limitation without misinterpreting it as a system error.

Example Error:

Instead of:

Consider:

image