Fixed bug when status is pending.
Ensure API user has right to update a the record. Added changed email notification.
Merge branch 'my'