diff --git a/src/ninegate-1.0/src/Cadoles/PortalBundle/Form/CalendareventShareType.php b/src/ninegate-1.0/src/Cadoles/PortalBundle/Form/CalendareventShareType.php index 8b441687..8f1c3be0 100644 --- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Form/CalendareventShareType.php +++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Form/CalendareventShareType.php @@ -35,8 +35,10 @@ class CalendareventShareType extends AbstractType ->where('g.fgcanshare=:fgcanshare') ->andWhere('g=ug.group') ->andWhere('ug.user=:user') + ->andWhere('ug.rolegroup>=:role') ->setParameter('fgcanshare',true) - ->setParameter('user',$user); + ->setParameter('user',$user) + ->setParameter('role',90); }, 'choice_label' => 'label', 'multiple' => true,