<commit_before>module Abilities
  class AdminCptAbility
    include CanCan::Ability

    def initialize(user)

      cannot :manage, [CapitalProject, ActivityLineItem, CapitalPlan, CapitalPlanAction]

      self.merge Abilities::AuthorizedCptAbility.new(user)
      self.merge Abilities::ManagerCptAbility.new(user)
    end
  end
end<commit_msg>[fixes#151684279] admins can do anything to capital plans, bug from admin refactor<commit_after>module Abilities
  class AdminCptAbility
    include CanCan::Ability

    def initialize(user)

      cannot :manage, [CapitalProject, ActivityLineItem, CapitalPlan, CapitalPlanAction]

      self.merge Abilities::AuthorizedCptAbility.new(user)
      self.merge Abilities::ManagerCptAbility.new(user)

      # can do anything on capital plans
      can :manage, [CapitalPlan, CapitalPlanAction]
    end
  end
end
{'fraction_non_alphanumeric': 0.07268464243845252, 'fraction_numerical': 0.010550996483001172, 'mean_word_length': 4.405063291139241, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1071080', 'n_tokens_mistral': 264, 'n_tokens_neox': 247, 'n_words': 64}