Commit e09cc195 authored by Nihad Abbasov's avatar Nihad Abbasov

fix variable name

parent e9142c6f
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment