check template access