def organizations(org_list = nil)
      if org_list
        return org_list if dashboard_type == 'template'
        org_list.to_a.select { |e| organization_ids.include?(e.uid) || organization_ids.include?(e.id) }
      else
        MnoEnterprise::Organization.where('uid.in' => organization_ids).to_a
      end
    end
def organizations(org_list = nil)
      if org_list
        return org_list if dashboard_type == 'template'
        org_list.to_a.select { |e| organization_ids.include?(e.uid) || organization_ids.include?(e.id) }
      else
        MnoEnterprise::Organization.where('uid.in' => organization_ids).to_a
      end
    end
Return all the organizations linked to this dashboard and to which the user has access
 If the dashboard is a template, return all the current user's organizations