Hides Edit Layer, Fixes #1835

Fixes #1835.  Hides "Edit Layer" button when user has no permissions to execute any of the commands in the popup.