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 c13d0ba606f7b2bdc609a7f388334e5efec3f3aa 1 parent 212f13b
@dolph dolph authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  keystone/identity/core.py
View
1  keystone/identity/core.py
@@ -515,6 +515,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.