Skip to content

Commit 0f5fdd2

Browse files
committed
One small change to teknofire's guest user logging: bail if the application
does not support guest users and is using the default restful authentication
1 parent 5e49091 commit 0f5fdd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/activity_streams/log_activity_streams.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def write_activity_stream_log(actor_method, actor_name, verb, object_method,
4949

5050
return unless action == self.action_name.to_sym
5151

52-
return if !flash[:error].blank? || @suppress_activity_stream
52+
return if !flash[:error].blank? || current_user == :false || @suppress_activity_stream
5353

5454
status = options[:status] || 0
5555

0 commit comments

Comments
 (0)