<?php
namespace CioSubaccounts\Subscriber;
use CioCustomerPermissionGroups\Event\CustomerAclRolesEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class SubaccountsPermissions implements EventSubscriberInterface
{
public static function getSubscribedEvents()
{
return [
CustomerAclRolesEvent::class => 'onCustomerAclRolesEvent',
];
}
public function onCustomerAclRolesEvent(CustomerAclRolesEvent $event)
{
$event->addRoles([
[
'title' => 'ALLOW_MANAGE_SUBACCOUNTS',
'description' => 'Erlaubt die Verwaltung von eigenen Subaccounts.'
]
]);
}
}