Skip to content
Snippets Groups Projects
Commit e9603994 authored by Marcela Ribeiro de Oliveira's avatar Marcela Ribeiro de Oliveira
Browse files

change is_current_user method

parent e5ff5d90
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,7 @@ class UserSerializer < ActiveModel::Serializer
end
def is_current_user?
(current_user != nil)&&(object.id == current_user.id || current_user.is_admin?)
(!current_user.nil?)&&(object.id == current_user.id || current_user.is_admin?)
end
attributes \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment