Fix templates addition perms check