diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Command/data/core-init-01.sql b/src/ninegate-1.0/src/Cadoles/CoreBundle/Command/data/core-init-01.sql index 19653747..a4337b1f 100644 --- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Command/data/core-init-01.sql +++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Command/data/core-init-01.sql @@ -8,7 +8,7 @@ INSERT IGNORE INTO `niveau01` (`id`, `label`, `siren`) VALUES (-100, 'DRAAF', '130007107'); INSERT IGNORE INTO `user` (`id`, `niveau01_id`, `username`, `firstname`, `lastname`, `password`, `email`, `avatar`, `role`,`siren`,`authlevel`) VALUES -(-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}otHXvfP0WOEFQYGgcJCVwAZ8h4HHrHOP +(-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}wAHoMm5DBdK1+YoDHF+e40chzyBR/vhk ', 'admin@ldapbundle.ac-arno.fr', 'admin.jpg', 'ROLE_ADMIN', '130007107', 'simple'); diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Controller/CoreController.php b/src/ninegate-1.0/src/Cadoles/CoreBundle/Controller/CoreController.php index 92d7fe32..d2c6755a 100644 --- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Controller/CoreController.php +++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Controller/CoreController.php @@ -128,7 +128,8 @@ class CoreController extends Controller 'pagesuser' => $pagesuser, 'groupsshared' => $groupsshared, 'canadd' => $this->get('session')->get('cancreatepage'), - 'widgets' => $this->getDoctrine()->getRepository("CadolesPortalBundle:Widget")->getWidgetAccess("user") + 'widgetsuser' => $this->getDoctrine()->getRepository("CadolesPortalBundle:Widget")->getWidgetAccess("user"), + 'widgetsgroup' => $this->getDoctrine()->getRepository("CadolesPortalBundle:Widget")->getWidgetAccess("group") ]); } diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/views/File/view.html.twig b/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/views/File/view.html.twig index e4d0ccb1..ae24a55c 100644 --- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/views/File/view.html.twig +++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/views/File/view.html.twig @@ -6,7 +6,7 @@
  • {{ filename }}
  • - @@ -29,9 +29,9 @@ {% endif %} {% if entity.id is defined and page.id==entity.id %} - + {% else %} - + {% endif %} {% endfor %} @@ -46,9 +46,9 @@ {% endif %} {% if entity.id is defined and page.id==entity.id %} - + {% else %} - + {% endif %} {% else %} @@ -82,14 +82,15 @@ - + + {% endblock %} {% block pagewrapper %}
    -