#Hi can someone explain to me how canAccessAdmin functions?

5 messages · Page 1 of 1 (latest)

formal kelp
#

I can't seem to understand how it works nor find the available docs. Any account I created has its value set to true. what's the point of it?

outer zincBOT
formal kelp
#

my other concern is that when setting up access controls and checking my access on via /api/access it also returns other tables such as

"payload-locked-documents": {
            "fields": true,
            "create": true,
            "read": true,
            "update": true,
            "delete": true
        }

do I also have to specify a collection for that?

is there a global config to set it up? I've read the docs but somehow it's not what I'm looking for.

formal kelp
#

my reason behind it is I wish to separate admin account from users. And I dont know how to alter the canAccessAdmin variable.

formal kelp
#

found the answer, it seems canAdminAccess is directly related to CollectionConfig.access.admin. Setting it to false disabled their access and its reflected on access api as well. What it does is it allows users to login to admin panel but it does not affect their login through the api.