app/volt/models/user.rb in volt-0.9.3.pre1 vs app/volt/models/user.rb in volt-0.9.3.pre2
- old
+ new
@@ -17,10 +17,10 @@
permissions(:read) do
# Never pass the hashed_password to the client
deny :hashed_password
# Deny all if this isn't the owner
- deny if !_id == Volt.current_user_id && !new?
+ deny if !id == Volt.current_user_id && !new?
end
if RUBY_PLATFORM == 'opal'
validations do
# Only validate password when it has changed