File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -261,10 +261,10 @@ def validate_calnet_uid(uid):
261261 raise ValidationError ("CalNet UID can't be found in university LDAP." )
262262
263263 # check if user is eligible for an account
264- affiliations = attrs ['berkeleyEduAffiliations' ]
265- if not eligible_for_account (affiliations ):
266- raise ValidationWarning (
267- 'Affiliate type not eligible for account: ' + str (affiliations ))
264+ # affiliations = attrs['berkeleyEduAffiliations']
265+ # if not eligible_for_account(affiliations):
266+ # raise ValidationWarning(
267+ # 'Affiliate type not eligible for account: ' + str(affiliations))
268268
269269
270270def eligible_for_account (affiliations ):
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ def eligible_for_vhost(user):
8787 return True
8888 elif 'calnetUid' in attrs :
8989 attrs_ucb = user_attrs_ucb (attrs ['calnetUid' ])
90- if attrs_ucb and 'EMPLOYEE-TYPE-ACADEMIC' in attrs_ucb ['berkeleyEduAffiliations' ]:
90+ if attrs_ucb : # and 'EMPLOYEE-TYPE-ACADEMIC' in attrs_ucb['berkeleyEduAffiliations']:
9191 return True
9292
9393 return False
You can’t perform that action at this time.
0 commit comments