Skip to content

Conversation

GMishx
Copy link
Member

@GMishx GMishx commented Nov 16, 2021

Description

Currently, the username field for non-admin users are disabled. It cause any update request to fail.

Changes

Added a check if field is empty and user is non-admin, update it with with user id from session.

How to test

  1. Login as admin user, goto Admin > Users > Edit User Account and update some field.
  2. Login as non-admin user, goto same page and edit some fields (like password).

Currently, the username field for non-admin users are disabled. It cause
any update request to fail.
Added a check if field is empty and user is non-admin, update it with
with user id from session.

Signed-off-by: Gaurav Mishra <[email protected]>
Copy link
Member

@shaheemazmalmmd shaheemazmalmmd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code looks good. tested works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants