Skip to content

Commit

Permalink
remove strict option
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus committed Mar 10, 2015
1 parent d3a379e commit 5616626
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/storage/bucket.js
Original file line number Diff line number Diff line change
Expand Up @@ -516,8 +516,6 @@ Bucket.prototype.makePublic = function(options, callback) {
* requests. Use with caution.
*
* @param {object=} options - The configuration object.
* @param {boolean} options.strict - Make the bucket private to only the owner
* user. Otherwise, it will be private to the project.
* @param {boolean} options.includeFiles - Make each file in the bucket private.
* Default: `false`.
* @param {boolean} options.force - Queue errors occurred while making files
Expand Down Expand Up @@ -571,7 +569,7 @@ Bucket.prototype.makePrivate = function(options, callback) {
}

var query = {
predefinedAcl: options.strict ? 'private' : 'projectPrivate'
predefinedAcl: 'projectPrivate'
};

// You aren't allowed to set both predefinedAcl & acl properties on a bucket
Expand Down Expand Up @@ -808,7 +806,7 @@ Bucket.prototype.makeAllFilesPublicPrivate_ = function(options, callback) {
if (options.public) {
file.makePublic(processedCallback);
} else if (options.private) {
file.makePrivate({ strict: options.strict }, processedCallback);
file.makePrivate(processedCallback);
}

function processedCallback(err) {
Expand Down

0 comments on commit 5616626

Please sign in to comment.