Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Require authz to update user's tenant (bug 1040626)

Change-Id: I82f80b84af2bc4db00b3dcb87a2ec338816a82e9
  • Loading branch information...
commit 5438d3b5a219d7c8fa67e66e538d325a61617155 1 parent a16a0ab
Dolph Mathews dolph authored russellb committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  keystone/identity/core.py
1  keystone/identity/core.py
View
@@ -436,6 +436,7 @@ def set_user_password(self, context, user_id, user):
def update_user_tenant(self, context, user_id, user):
"""Update the default tenant."""
+ self.assert_admin(context)
# ensure that we're a member of that tenant
tenant_id = user.get('tenantId')
self.identity_api.add_user_to_tenant(context, tenant_id, user_id)
Please sign in to comment.
Something went wrong with that request. Please try again.