database
database copied to clipboard
Support writePermission property in fields
A fairly common use case is to allow users to read all fields, but only allow admins to write some fields. This is not possible with the current readPermission / permission properties. One solution would be to add a writePermission property, or to modify the checkAttributes function to also pass in the opts object (which has the isWrite flag). The former solution seems cleaner.