I'm having a question about building a small project. A user has access to a module from a department, so far so good. My question is if the user needs to access another module from the same department. The login is being done automatically, I check the access to the department and the module and I have a folder hierarchy for department with example modules.
I have a frontController that calls the includes according to department and module. The include file home.php was an example.
departamentoA/módulo1/home.php
departamentoA/módulo2/home.php
departamentoA/módulo3/home.php
departamentoB/módulo1/home.php