Skip to content

Commit 02ab5fd

Browse files
committed
small fixes
1 parent 010235a commit 02ab5fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/patron.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ def self.inst_roles_for(data)
5050

5151
def self.valid_for(data)
5252
inst_roles = inst_roles_for(data)
53-
inst_roles.select do |inst_role|
53+
inst_roles.each do |inst_role|
5454
user = for_inst_role(inst_role: inst_role, data: data)
55-
user if user.includable?
55+
return user if user.includable?
5656
end
5757
end
5858

@@ -65,7 +65,7 @@ def self.exclude_reasons_for(data)
6565
end
6666

6767
def self.for_inst_role(inst_role:, data:)
68-
case inst_role
68+
case inst_role["role"]
6969
when "student"
7070
case inst_role["campus"]
7171
when "UMAA"

0 commit comments

Comments
 (0)