Multiple roles for customers
Multiple Roles
In some use cases, it might be beneficial to have multiple roles for members, not just the default one, customer
. The Kirby Kart plugin will use the first entry in the list of roles when automatically creating user accounts.
For instance, you could allow some customers access to certain parts of the Panel or need customers with different roles to manage permissions.
The config allows you to define multiple possible roles. The first one will be used as the default when automatically creating new members.
site/config/config.php
<?php
return [
'bnomei.kart.customers.roles' => ['customer', 'member', 'admin'], // <-- the default
// other options
];