Fixed getRoleByName permissions.