ECMS-4613: AccessControlException when edit html file

Fix description:
   - Filter the Edit button by the permission to access template