platformplatform / PlatformPlatform

Alpha state. A platform designed for building enterprise-grade, multi-tenant products using Azure, .NET, React, TypeScript, Infrastructure as Code, etc.
https://platformplatform.github.io
MIT License
253 stars 26 forks source link

Add option to delete a user with confirmation and enhanced permissions #630

Closed tjementum closed 1 day ago

tjementum commented 1 day ago

Summary & Motivation

Introduce the ability to delete a user, with a confirmation dialog in the UI. The dialog displays the user's name or email (if the name is not provided) when confirming the deletion.

The Modal component has been updated to support disabling background blur, which is not useful when showing confirmation box.

On the server side, logic has been added to allow only owners to delete users or change roles. Owners cannot delete or modify their own roles.

The delete option has been disabled in the UI by default.

Checklist

linear[bot] commented 1 day ago

PP-258 Delete User

sonarcloud[bot] commented 1 day ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
22.2% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud