lib/authpds-nyu/session.rb in authpds-nyu-0.1.1 vs lib/authpds-nyu/session.rb in authpds-nyu-0.1.2

- old
+ new

@@ -83,11 +83,11 @@ bor_auth = aleph_bor_auth(bor_id, verification, adm, sublibrary) return (bor_auth.nil? or bor_auth.error) ? {} : bor_auth.permissions end def aleph_bor_auth(bor_id=nil, verification=nil, adm=nil, sublibrary=nil) - bor_id = pds_user.id if bor_id.nil? - verification = pds_user.verification if verification.nil? + bor_id = pds_user.id if bor_id.nil? unless pds_user.nil? + verification = pds_user.verification if verification.nil? unless pds_user.nil? aleph_url = self.class.aleph_url adm = self.class.aleph_default_adm if adm.nil? sublibrary = self.class.aleph_default_sublibrary if sublibrary.nil? # Call X-Service bor_auth = \ No newline at end of file