feat: implement user management system

- Add role field to UserProfile (superadmin/admin/trainer)
- Add role-based permission classes
- Create UserManagementViewSet with CRUD and password change
- Add API types and components for user management
- Create users management page in settings
- Only superadmins can manage users
This commit is contained in:
Andrej Spielmann
2026-03-26 16:42:08 +01:00
parent 7611533718
commit 28222d634d
19 changed files with 1960 additions and 7 deletions
+6
View File
@@ -0,0 +1,6 @@
# Backend Environment
SECRET_KEY=change-me-to-a-long-random-string-in-production
DATABASE_URL=sqlite:///db.sqlite3
# For PostgreSQL (recommended for production):
# DATABASE_URL=postgresql://user:password@db:5432/wrestledesk