Replace user groups check with perms check
Merge pull request #1044 from makinacorpus/fix_templates_add_perms

Fix templates addition perms check