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 5438d3b5a219d7c8fa67e66e538d325a61617155 1 parent a16a0ab
Dolph Mathews authored August 23, 2012 russellb committed August 30, 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
@@ -436,6 +436,7 @@ def set_user_password(self, context, user_id, user):
436 436
 
437 437
     def update_user_tenant(self, context, user_id, user):
438 438
         """Update the default tenant."""
  439
+        self.assert_admin(context)
439 440
         # ensure that we're a member of that tenant
440 441
         tenant_id = user.get('tenantId')
441 442
         self.identity_api.add_user_to_tenant(context, tenant_id, user_id)

Git Notes

review

Verified+2: Jenkins
Approved+1: Mark McLoughlin <markmc@redhat.com>
Code-Review+2: Mark McLoughlin <markmc@redhat.com>
Submitted-by: Jenkins
Submitted-at: Thu, 30 Aug 2012 15:18:22 +0000
Reviewed-on: https://review.openstack.org/12194
Project: openstack/keystone
Branch: refs/heads/stable/essex

0 notes on commit 5438d3b

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