check access for crud operations on templates