fix logic on check_translation_permissions