fullcube / loopback-ds-readonly-mixin

A mixin to enable readonly properties for loopback Models
MIT License
51 stars 19 forks source link

Update read-only.js #10

Open devonatdomandtom opened 8 years ago

devonatdomandtom commented 8 years ago

Added check to see if body is empty to prevent sql error 'syntax error at or near "WHERE"'

devonatdomandtom commented 8 years ago

@ mrfelton I wonder if these are valid tests? If we're only updating readonly model attributes, shouldn't we return a 403? Can I amend the test?