I'm currently working with the Payload CMS v3 beta for my upcoming Next.js application, where I have successfully set up user registration, login, logout, and account details features. I'm quite impressed with how well v3 is performing. Great work!
However, I've noticed that new users also gain access to the admin panel upon account creation. I need to ensure that while users can log in via the general API endpoint (/api/users/login), they should not have access to the admin panel (/admin) by default.
Could you advise if the "canAccessAdmin" flag can be set to false by default when a user account is created?
Is there an easy way to restrict access in this way?
Thanks, Thorsten