summaryrefslogtreecommitdiff
path: root/lib/api/helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r--lib/api/helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb
index 2b0c672c7fa..2cac04d3495 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -16,7 +16,7 @@ module API
rescue => ex
not_found!("No user id or username for: #{identifier}")
end
- not_found!("No user id or username for: #{identifier}") if current_user.nil?
+ not_found!("No user id or username for: #{identifier}") if @current_user.nil?
end
@current_user
end