mirror of https://github.com/usememos/memos.git
Defense-in-depth fix: Add missing nil check before accessing currentUser.ID and currentUser.Role in DeleteUser function. While the auth interceptor should block unauthenticated requests, this check prevents potential nil pointer panic if fetchCurrentUser returns (nil, nil). |
||
|---|---|---|
| .. | ||
| api/v1 | ||
| fileserver | ||
| frontend | ||
| rss | ||