public function onDisplayWorkspace(DisplayToolEvent $event)
    {
        $workspace = $event->getWorkspace();

        $content = $this->templating->render(
            'ClarolineCoreBundle:workspace:users.html.twig', [
                'workspace' => $workspace,
                'restrictions' => [
                    'hasUserManagementAccess' => $this->authorization->isGranted('OPEN', $this->om
                        ->getRepository('ClarolineCoreBundle:Tool\AdminTool')
                        ->findOneBy(['name' => 'user_management'])
                    ),
                ],
            ]
        );

        $event->setContent($content);
        $event->stopPropagation();
    }
public function onDisplayWorkspace(DisplayToolEvent $event)
    {
        $workspace = $event->getWorkspace();

        $content = $this->templating->render(
            'ClarolineCoreBundle:workspace:users.html.twig', [
                'workspace' => $workspace,
                'restrictions' => [
                    'hasUserManagementAccess' => $this->authorization->isGranted('OPEN', $this->om
                        ->getRepository('ClarolineCoreBundle:Tool\AdminTool')
                        ->findOneBy(['name' => 'user_management'])
                    ),
                ],
            ]
        );

        $event->setContent($content);
        $event->stopPropagation();
    }
public function onDisplayWorkspace ( DisplayToolEvent $ event ) { $ workspace = $ event -> getWorkspace ( ) ; $ content = $ this -> templating -> render ( 'ClarolineCoreBundle:workspace:users.html.twig' , [ 'workspace' => $ workspace , 'restrictions' => [ 'hasUserManagementAccess' => $ this -> authorization -> isGranted ( 'OPEN' , $ this -> om -> getRepository ( 'ClarolineCoreBundle:Tool\AdminTool' ) -> findOneBy ( [ 'name' => 'user_management' ] ) ) , ] , ] ) ; $ event -> setContent ( $ content ) ; $ event -> stopPropagation ( ) ; }
Displays users on Workspace.

@DI\Observe("open_tool_workspace_users")

@param DisplayToolEvent $event
Displays users on Workspace .