title: Google Drive “Share” dialog not showing for "writer"
body: <p>We've incorporated Google Drive “Share” dialog into our web application which creates its own files, and it works perfectly thanks to the answer to <a href="https://stackoverflow.com/questions/13479082/unable-to-open-share-dialog?rq=1">another question</a>, but only for document owner. </p>
  
  <p>Even though "writers" can easily share documents from Google Drive, that seems to be not possible externally, i.e. in our app. </p>
  
  <p>This is the code which works for "owners" but fails for "writers":</p>
  
  <pre><code>        var s =  new gapi.drive.share.ShareClient(appId);
          s.setItemIds(fileId);
          s.showSettingsDialog();
  </code></pre>
  
  <p>Curiously, the error in JS console is the same as one can see when the script is launched from a wrong URL:</p>
  
  <pre><code>Refused to display 'https://drive.google.com/share?id=0B....' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'
  </code></pre>
  
  <p>We haven't found anything related to possibility to share docs by various user roles in the documentation, so we wonder if that's a bug or undocumented restriction. Any ideas are welcome.</p>
  
  <p><em>UPDATE</em>
  The issue seems to have gone - it looks like Google have changed something their end.</p>