What does the admin access control function do, and what arguments does it receive?

The admin access control function determines whether a user can access the Payload Admin panel for a specific Collection. This function is crucial for controlling administrative access within the Payload system.

It receives the following argument:

  • req: The Express request object containing the currently authenticated user.

The function should return a boolean value indicating whether the user has permission to access the Admin panel for that Collection.

Leave a comment

Your email address will not be published. Required fields are marked *