@@ -9,8 +9,7 @@ discard block |
||
9 | 9 | use Symfony\Component\HttpFoundation\Response; |
10 | 10 | use Symfony\Component\Routing\Annotation\Route; |
11 | 11 | |
12 | -class AccessRightsController extends Controller |
|
13 | -{ |
|
12 | +class AccessRightsController extends Controller { |
|
14 | 13 | //---------------------------------------------- VIEWS METHODS ---------------------------------------------------------// |
15 | 14 | /** |
16 | 15 | * @Route("/access-rights-management/", name="ribsadmin_access_rights") |
@@ -40,7 +39,8 @@ discard block |
||
40 | 39 | |
41 | 40 | if ($guid === null) { |
42 | 41 | $access_right = new AccessRight(); |
43 | - } else { |
|
42 | + } |
|
43 | + else { |
|
44 | 44 | $access_right = $em->getRepository("RibsAdminBundle:AccessRight")->findOneBy(["guid" => $guid]); |
45 | 45 | $list_rights_user = explode(",", $access_right->getAccessRights()); |
46 | 46 | } |