lib/google/cloud/storage/bucket/acl.rb in google-cloud-storage-1.7.0 vs lib/google/cloud/storage/bucket/acl.rb in google-cloud-storage-1.7.1
- old
+ new
@@ -191,11 +191,12 @@
#
# email = "authors@example.net"
# bucket.acl.add_owner "group-#{email}"
#
def add_owner entity
- gapi = @service.insert_bucket_acl @bucket, entity, "OWNER"
+ gapi = @service.insert_bucket_acl @bucket, entity, "OWNER",
+ user_project: user_project
entity = gapi.entity
@owners.push entity unless @owners.nil?
entity
end
@@ -276,10 +277,11 @@
#
# email = "authors@example.net"
# bucket.acl.add_reader "group-#{email}"
#
def add_reader entity
- gapi = @service.insert_bucket_acl @bucket, entity, "READER"
+ gapi = @service.insert_bucket_acl @bucket, entity, "READER",
+ user_project: user_project
entity = gapi.entity
@readers.push entity unless @readers.nil?
entity
end