Skip to content

Conversation

@Prakhar896
Copy link
Contributor

@Prakhar896 Prakhar896 commented Aug 12, 2025

This PR introduces the following changes:

  • User management page at /admin/iam that can be accessed from admin console (/admin). User must be a superuser.
  • Profile.jsx has been re-purposed to also be useful to superusers. Superusers viewing regular user's profiles is at /profile/:userID, while regular own profile viewing is at /profile. Both routes use the Profile.jsx page.
  • For superusers viewing regular user profiles, buttons for invalidating user session, resetting password and deleting account are also provided.
  • Superusers are also permitted to delete regular user avatars, but not replace them.
  • Sidebar now renders a nice little pink badge if the logged in user is an admin
  • Superuser-privileged pages are wrapped in a new <SuperuserLayout />, except for Profile.jsx which carries out security logic manually.

@Prakhar896 Prakhar896 self-assigned this Aug 12, 2025
@Prakhar896 Prakhar896 added the enhancement New feature or request label Aug 12, 2025
@Prakhar896 Prakhar896 merged commit 0407d1a into main Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants