Adds delete user functionality in admin panel #86 (#110)

* #86 Adds delete user functionality in admin panel

* Removes unnecessary code

* Prevents current user from deleting itself
This commit is contained in:
Pacodastre
2025-06-08 05:49:11 +01:00
committed by GitHub
parent 8f86ac0dfa
commit f70cb75b35
13 changed files with 214 additions and 8 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ model Notification {
nonce String?
userId String
user User @relation(fields: [userId], references: [id])
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
acls String[]
created DateTime @default(now())