/**
  * {@inheritdoc}
  */
 protected function getRolePrivileges(AbstractRole $role)
 {
     $this->startFrontendProviderEmulation();
     $privileges = parent::getRolePrivileges($role);
     $this->stopFrontendProviderEmulation();
     return $privileges;
 }