correctif sur gestion des groupes via console admin (fixes #35)

This commit is contained in:
afornerot 2019-11-08 16:09:10 +01:00
parent 8d1b8db3f4
commit 3b0ac28df9
1 changed files with 1 additions and 1 deletions

View File

@ -662,7 +662,7 @@ class GroupController extends Controller
// Permission
$permgroup=$this->get('session')->get('permgroup');
if($access="user") {
if($access=="user") {
if($permgroup=="NO_BODY") throw $this->createNotFoundException('Permission denied');
if($permgroup=="ROLE_ANIM" && $this->isGranted('ROLE_USER')) throw $this->createNotFoundException('Permission denied');
}