feat: enhance admin user management and profile updates
- Added role and tier fields to the ProfileUpdate model, allowing for better user role management. - Implemented new API endpoint for listing admin users, accessible only to portal admins. - Updated profile retrieval and update logic to handle role and tier changes, enforcing permissions for modifications. - Enhanced frontend navigation and routing to include the new admin users page, improving admin interface usability. - Bumped application version to 0.8.19 and updated changelog to reflect these changes.
This commit is contained in:
1 parent
0f08e8df58
commit
9afcd762d0
11 files changed
+574
-11
No files matched your search
@@ -115,6 +115,11 @@ export async function listProfiles() {
|
||||
return request('/api/profiles')
|
||||
}
|
||||
|
||||
/** Alle Nutzer inkl. Vereinsmitgliedschaften — nur Portal-Admin (UI: Admin → Nutzer). */
|
||||
export async function listAdminUsers() {
|
||||
return request('/api/admin/users')
|
||||
}
|
||||
|
||||
export async function updateProfile(profileId, data) {
|
||||
return request(`/api/profiles/${profileId}`, {
|
||||
method: 'PUT',
|
||||
@@ -1098,6 +1103,7 @@ export const api = {
|
||||
logout,
|
||||
getCurrentProfile,
|
||||
listProfiles,
|
||||
listAdminUsers,
|
||||
updateProfile,
|
||||
changePassword,
|
||||
verifyEmail,
|
||||
|
||||
Reference in new issue
Block a user