Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

Change-Id: I82f80b84af2bc4db00b3dcb87a2ec338816a82e9
  • Loading branch information...
commit c13d0ba606f7b2bdc609a7f388334e5efec3f3aa 1 parent 212f13b
Dolph Mathews authored August 23, 2012

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  keystone/identity/core.py
1  keystone/identity/core.py
@@ -515,6 +515,7 @@ def set_user_password(self, context, user_id, user):
515 515
 
516 516
     def update_user_tenant(self, context, user_id, user):
517 517
         """Update the default tenant."""
  518
+        self.assert_admin(context)
518 519
         # ensure that we're a member of that tenant
519 520
         tenant_id = user.get('tenantId')
520 521
         self.identity_api.add_user_to_tenant(context, tenant_id, user_id)

Git Notes

review

Verified+2: Jenkins
Approved+1: ayoung
Code-Review+2: ayoung
Submitted-by: Jenkins
Submitted-at: Thu, 23 Aug 2012 14:45:08 +0000
Reviewed-on: https://review.openstack.org/11869
Project: openstack/keystone
Branch: refs/heads/master

0 notes on commit c13d0ba

Please sign in to comment.
Something went wrong with that request. Please try again.