mirror of https://github.com/usememos/memos
fix: add nil check for currentUser in DeleteUser
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).pull/5556/head v0.26.0
parent
c7b48b800f
commit
1696c6c414
Loading…
Reference in New Issue