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

    def initialize(user)

      can :manage, MapOverlayService do |service|
        user.organization_ids.include? service.organization_id
      end

      cannot :share, MapOverlayService

    end
  end
end<commit_msg>add org list to ability file for customization<commit_after>module Abilities
  class TransitManagerSpatialAbility
    include CanCan::Ability

    def initialize(user, organization_ids=[])

      if organization_ids.empty?
        organization_ids = Organization.ids
      end

      can :manage, MapOverlayService do |service|
        organization_ids.include? service.organization_id
      end

      cannot :share, MapOverlayService

    end
  end
end
{'fraction_non_alphanumeric': 0.05317769130998703, 'fraction_numerical': 0.0, 'mean_word_length': 3.361581920903955, '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': '4819773', 'n_tokens_mistral': 217, 'n_tokens_neox': 204, 'n_words': 58}