Add explicit check for permissions on edit page
Because for some reason the edit pages were sometimes visible to users with roles without the necessary permission