Module modal: hide activate, deactivate, and configure buttons

when you do not have permissions to use these buttons
Fixes #1357