class Mumukit::Auth::Permissions
  def accessible_organizations
    scope_for(:student)&.grants&.map { |grant| grant.instance_variable_get(:@first) }.to_set
  end
end

Mumukit::Auth.configure do |c|
  # We are not using tokens, so implementing this strategy is meaningless
  c.persistence_strategy = nil
end

class Mumukit::Auth::Permissions
  def accessible_organizations
    scope_for(:student)&.grants&.map { |grant| grant.to_mumukit_slug.organization }.to_set
  end
end

Mumukit::Auth.configure do |c|
  # We are not using tokens, so implementing this strategy is meaningless
  c.persistence_strategy = nil
end

Make accessible organizations more expressive
Make accessible organizations more expressive
