Hi all,
I'm about to write a plugin that filters the modules depending on a user's permission to edit specific frontend-modules (in backend!). So: User A has the permission to edit moduleA, moduleC, and moduleD, but not moduleB.
Since I have over 200 modules I need to filter the displayed list to show the users only the allowed modules.
How can I access the available modules and edit this list in order to remove all the modules from being displayed which are not editable by the current logged in user?
I thought of
jimport( 'joomla.application.module.helper' );
$modulesList = JModuleHelper::getModuleList();
but this only returns the backend modules, not the listed frontend-modules in com_modules.