[minor] [fix] when making control, use form's perm
[minor] [fix] url fix in editor webnotes/erpnext#934