@@ -54,7 +54,7 @@ |
||
54 | 54 | |
55 | 55 | return $this->render("@RibsAdmin/access-rights/edit-list.html.twig", [ |
56 | 56 | "access_right" => $access_right, |
57 | - "form" => $form->createView(), |
|
57 | + "form" => $form->createView(), |
|
58 | 58 | "list_rights_user" => $list_rights_user, |
59 | 59 | "ribs_admin_rights" => json_decode(file_get_contents($this->get("ribs_admin.globals")->getBaseBundlePath() . "/Resources/json/ribsadmin_rights.json")) |
60 | 60 | ]); |
@@ -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 | } |