Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
50 | public function getModuleRights() |
||
51 | { |
||
52 | $modules = $this->em->get("doctrine")->getRepository(Module::class)->findBy([ |
||
53 | "active" => true, |
||
54 | "displayed" => true |
||
55 | ]); |
||
56 | $rights = []; |
||
57 | |||
58 | foreach ($modules as $module) { |
||
59 | $rights[] = json_decode(file_get_contents($this->globals->getBaseBundlePath($module->getPackageName()) . "/Resources/json/ribsadmin_rights.json")); |
||
60 | } |
||
61 | |||
62 | return (object)$rights; |
||
63 | } |
||
64 | } |