Fixing roles for editing templates