Skip to content

Commit b0d0c87

Browse files
committed
fix: Add validation to prevent deletion of the last admin user
1 parent 5952495 commit b0d0c87

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

frontend/src/app/admin/user/user-list/user-management.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ export class UserMgmtComponent implements OnInit, OnDestroy {
163163
}
164164

165165
deleteUser(user: User) {
166-
console.log('delete');
167166
if (!window.location.href.includes(DEMO_URL)) {
168167
const modalRef = this.modalService.open(UserMgmtDeleteDialogComponent, {
169168
size: 'sm',

0 commit comments

Comments
 (0)