Try to display different panels based on users' roles

Maybe you can search for clues here

include/SubPanel/SubPanelDefinitions.php

there are functions like set_hidden_subpanels and get_hidden_subpanels which seem to manipulate settings to hide subpanels. This is probably what the app saves in “Admin / Display modules and Subpanels” option.