Shift3 / boilerplate-client-react

The Bitwise standard starting point for new React web projects.
7 stars 10 forks source link

Admin should be able to `disable` or `enable` users #769

Open fluturecode opened 1 year ago

fluturecode commented 1 year ago

Please run this along the backend PR at 'https://github.com/Shift3/dj-starter/pull/67'

Changes

  1. Updated user model
  2. Updated user.api
  3. Updated userListView
  4. Updated userDetailForm

Purpose

To allow Admins to disable/enable all other users.

Testing

  1. Pull in the changes to your local copy of this branch and run yarn start
  2. Run the backend on branch admin-disable-users
  3. Check that you can disable user.
  4. Check that the user field is updated after disabling.
  5. Check to enable that user.
  6. Check that you can disable them again.

Screenshots

Screenshot 2023-05-26 at 11 58 25 AM