Skip to content

Commit b8c46c1

Browse files
author
Thomas Osowski
committed
Flip that pesky logic
1 parent d3004e2 commit b8c46c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/ruby/ghe-org-permissions-report.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def get_org_role(ghe, org_name, user_login)
9797
'org-admin'
9898
elsif org_role == 'outside-collaborator'
9999
'org-collaborator'
100-
elsif !best_team_permission.nil? && PERMISSION_LEVELS.index(perms) < best_team_permission
100+
elsif best_team_permission.nil? || PERMISSION_LEVELS.index(perms) < best_team_permission
101101
'org-default-permission'
102102
else
103103
'team'

0 commit comments

Comments
 (0)