lib/workflow_setup.rb
# Give all superusers the managing role all workflows
Give all superusers the managing role all workflows
Give all superusers the managing role all workflows
def give_superusers_managing_role
    AdminSet.all.each do |admin_set|
      admin_set.permission_template.available_workflows.each do |workflow| 
        workflow.update_responsibilities(role: Sipity::Role.where(name: "managing").first, agents: superusers_as_sipity_agents)
      end
    end
  end
def give_superusers_managing_role AdminSet . all . each do | admin_set | admin_set . permission_template . available_workflows . each do | workflow | workflow . update_responsibilities ( role : Sipity :: Role . where ( name : "managing" ) . first , agents : superusers_as_sipity_agents ) end end end
Give all superusers the managing role all workflows
Give all superusers the managing role all workflows
# .where(active: true) ?