lib/ddr/auth/auth_context.rb in ddr-models-3.0.1 vs lib/ddr/auth/auth_context.rb in ddr-models-3.0.2
- old
+ new
@@ -28,10 +28,10 @@
end
# Return the user agent for this context.
# @return [String] or nil, if auth context is anonymous/
def agent
- anonymous? ? nil : user.agent
+ user.agent if authenticated?
end
# Is the authenticated agent a Duke identity?
# @return [Boolean]
def duke_agent?