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
admin
access function on your users collection, add a
disabled
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#adminStar
Discord
online
Get help straight from the Payload team with an Enterprise License.