#Hi can someone explain to me how canAccessAdmin functions?
5 messages · Page 1 of 1 (latest)
Help is on the way! To mark it as solved, use the /solve command. In the meantime, here are some existing threads that may help you:
Documentation:
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.
my reason behind it is I wish to separate admin account from users. And I dont know how to alter the canAccessAdmin variable.
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.