Do not apply the limitation of customers if the corresponding setting is disabled

This commit is contained in:
Alex Tselegidis 2022-12-21 19:09:21 +01:00
parent 784d4b35a4
commit f23c9aad49

View file

@ -60,7 +60,7 @@ class Permissions {
$limit_customer_access = setting('limit_customer_access');
if ($role_slug === DB_SLUG_ADMIN)
if ($role_slug === DB_SLUG_ADMIN || ! $limit_customer_access)
{
return TRUE;
}