Add permissions support in Categories templates