This commit is contained in:
afornerot 2019-07-17 14:40:12 +02:00
parent d15bf190fe
commit 3467eea83d
3 changed files with 4 additions and 2 deletions

View File

@ -79,6 +79,8 @@ swiftmailer:
assetic: assetic:
debug: "%kernel.debug%" debug: "%kernel.debug%"
use_controller: false use_controller: false
bundles:
- CadolesCoreBundle
filters: filters:
cssrewrite: ~ cssrewrite: ~

View File

@ -8,7 +8,7 @@ INSERT IGNORE INTO `niveau01` (`id`, `label`, `siren`) VALUES
(-100, 'DRAAF', '130007107'); (-100, 'DRAAF', '130007107');
INSERT IGNORE INTO `user` (`id`, `niveau01_id`, `username`, `firstname`, `lastname`, `password`, `email`, `avatar`, `role`,`siren`,`authlevel`) VALUES INSERT IGNORE INTO `user` (`id`, `niveau01_id`, `username`, `firstname`, `lastname`, `password`, `email`, `avatar`, `role`,`siren`,`authlevel`) VALUES
(-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}TkQTsvHn9GzwqtA6jPZ/ubyfp+ZwNbmH (-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}fTB28jypXVo+jctUtN4bThWKPiqY6H6k
', 'admin@ldapbundle.ac-arno.fr', 'admin.jpg', 'ROLE_ADMIN', '130007107', 'simple'); ', 'admin@ldapbundle.ac-arno.fr', 'admin.jpg', 'ROLE_ADMIN', '130007107', 'simple');

View File

@ -79,7 +79,7 @@ class WebsocketTopic implements TopicInterface
$usergroup=$this->em->getRepository("CadolesCoreBundle:UserGroup")->findOneBy(['keyvalue'=> $userkey]); $usergroup=$this->em->getRepository("CadolesCoreBundle:UserGroup")->findOneBy(['keyvalue'=> $userkey]);
if(!$usergroup) { if(!$usergroup) {
$topic->broadcast(['log' => 'user NOT IN GROUP']); $topic->broadcast(['log' => 'user NOT IN GROUP = '.$userkey]);
} }
else { else {
$user=$usergroup->getUser(); $user=$usergroup->getUser();