Module modal: hide activate, deactivate, and configure buttons

when you do not have permissions to use these buttons
Fixes #1357
Merge pull request #1360 from jeherve/fix/modal-action-buttons-permissions

Module modal: hide activate, deactivate, and configure buttons