Files can be shared in OneDrive Internally or Externally. When first sharing the setting is  just giving View rights only.  You can change to allow editing, make sure you change this.

Rights can be retracted at any time.  This control is in your Online OneDrive.  Go to Office.com and your OneDrive.