Fixed: edit function was sending read and write permissions separately.
Merge pull request #16 from pcoder/master

Fixed: edit function was sending read and write permissions separately.