public without sharing class OpportunityStageProgressBarUpdate {
  
  public static void updateProgressBar(List<Opportunity> newList, Map<Id, Opportunity> newMap, List<Opportunity> oldList, Map<Id, Opportunity> oldMap) {
    for (Opportunity newOpp : newList) {
      Opportunity oldOpp = oldMap.get(newOpp.Id);
            if (UserInfo.getUserType() != 'PowerPartner') {
                if (newOpp.Cancel_Fail_Approve__c != oldOpp.Cancel_Fail_Approve__c && newOpp.Cancel_Fail_Approve__c == 'Pass') {
                    StaticParameter.StageProgressBarUpdate = true;
                }
                
            }
    }
  }
}