how would i go about to disable a user from logging in to the admin panel? cant find any info about this.
You could create an
access function on your users collection, add a
checkbox field on the users collection and check for that inside your admin access function. Read a bit more about the admin access function here:https://payloadcms.com/docs/access-control/collections#admin