Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add examples of making an object publicly-readable #357

Merged
merged 2 commits into from
Jan 20, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add another example
  • Loading branch information
stephenplusplus committed Jan 20, 2015
commit 6c78b72593899dd522b9f3ec5cb80daed876cfe8
10 changes: 9 additions & 1 deletion lib/storage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,22 @@ function Storage(config) {
* var albums = storage.bucket('albums');
*
* //-
* // Make a bucket's contents publicly readable.
* // Make all of the files currently in a bucket publicly readable.
* //-
* albums.acl.add({
* scope: 'allUsers',
* permission: Storage.acl.READER_ROLE
* }, function(err, aclObject) {});
*
* //-
* // Make any new objects added to a bucket publicly readable.
* //-
* albums.acl.default.add({
* scope: 'allUsers',
* permission: Storage.acl.READER_ROLE
* }, function(err, aclObject) {});
*
* //-
* // Grant a user ownership permissions to a bucket.
* //-
*
Expand Down