Skip to content

Commit

Permalink
Added forgotten braces in User model.
Browse files Browse the repository at this point in the history
  • Loading branch information
ldesousa committed Aug 4, 2015
1 parent df8a20b commit 7f8a8b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def self.canAccessObject(current_user, object)


def self.getCurrentCity(current_user, cookies)
return (current_user and (current_user.role_id == 1) or(current_user.role_id == 3)) ?
return (current_user and ((current_user.role_id == 1) or (current_user.role_id == 3))) ?
(City.find_by_id(current_user.city_id)) :
(City.find_by_id(cookies['city']) or City.first)
end
Expand Down

0 comments on commit 7f8a8b3

Please sign in to comment.