allow preventing default type creation in factory
checks for permission before api/v2/types#index
Merge pull request #1965 from opf/fix/permissions_on_v2_types_controller

Fix/permissions on v2 types controller