diff options
author | Mitch Garnaat <mitch@cloudright.com> | 2010-09-14 12:51:03 -0400 |
---|---|---|
committer | Mitch Garnaat <mitch@cloudright.com> | 2010-09-14 12:51:03 -0400 |
commit | c9d1be26e17881abd000ec8ac08a770eb1b723ec (patch) | |
tree | 3ff326fe605ea5e79c2e95cb5f8fcdfc0bf12cdd | |
parent | f003f37f134e14cdaf96628b00b9a82ad97369eb (diff) | |
download | boto-c9d1be26e17881abd000ec8ac08a770eb1b723ec.tar.gz |
Fix bug in add_user_grant. Fixes issue 450.
-rw-r--r-- | boto/s3/key.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/boto/s3/key.py b/boto/s3/key.py index ae4883ff..fd6af570 100644 --- a/boto/s3/key.py +++ b/boto/s3/key.py @@ -921,7 +921,7 @@ class Key(object): policy.acl.add_email_grant(permission, email_address) self.set_acl(policy, headers=headers) - def add_user_grant(self, permission, user_id): + def add_user_grant(self, permission, user_id, headers=None): """ Convenience method that provides a quick way to add a canonical user grant to a key. This method retrieves the current ACL, creates a new grant based on the parameters @@ -939,4 +939,4 @@ class Key(object): """ policy = self.get_acl() policy.acl.add_user_grant(permission, user_id) - self.set_acl(policy) + self.set_acl(policy, headers=headers) |