You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Custom Role Created Without Selecting Options Causes Exception on User Login
Description:
A new custom role can be created without selecting any options. When this role is assigned to a new user, an exception error occurs upon logging in with that user. This issue needs to be addressed to ensure proper role validation and prevent login errors.
Steps to Reproduce:
Navigate to Admin > Settings > Roles and create a new custom role.
Save the role without selecting any permissions or options.
Assign this custom role to a new user.
Log in with the newly created user credentials.
Observe that an exception error occurs after login.
Expected Behavior:
Users with custom roles should only be created if at least one permission or option is selected, and they should be able to log in without encountering errors.
Actual Behavior:
The system allows saving a custom role without any options, resulting in an exception error on login.
Acceptance Criteria:
Validate that at least one option is selected before saving a custom role.
Ensure users with assigned roles can log in without errors.
Display a user-friendly error message if no permissions are selected during role creation.
Title:
Custom Role Created Without Selecting Options Causes Exception on User Login
Description:
A new custom role can be created without selecting any options. When this role is assigned to a new user, an exception error occurs upon logging in with that user. This issue needs to be addressed to ensure proper role validation and prevent login errors.
Steps to Reproduce:
Expected Behavior:
Users with custom roles should only be created if at least one permission or option is selected, and they should be able to log in without encountering errors.
Actual Behavior:
The system allows saving a custom role without any options, resulting in an exception error on login.
Acceptance Criteria:
Additional Context:
https://prnt.sc/J-DEDBS9dOHO
Exceptional.error.mp4
The text was updated successfully, but these errors were encountered: