https://github.com/john-smilga/react-course-v3/blob/7eb31e82fd427b98dd7e3849f578a68dc84618e0/16-nextjs-store/utils/actions.ts#L160 `getAuthUser()` only checks if the user is logged in. This should be changed to `getAdminUser()` so regular users can't edit product images.
react-course-v3/16-nextjs-store/utils/actions.ts
Line 160 in 7eb31e8
getAuthUser()only checks if the user is logged in.This should be changed to
getAdminUser()so regular users can't edit product images.