diff options
author | Thiago da Silva <thiago@redhat.com> | 2013-12-16 12:00:38 -0500 |
---|---|---|
committer | Luis Pabon <lpabon@redhat.com> | 2014-01-14 11:55:03 -0800 |
commit | df6b4adfc5d1180860e0d2f9dcbe780a8796714f (patch) | |
tree | 4842885dc67a9cfa8b240f627e9d8548d15ada3c /gluster/swift/__init__.py | |
parent | 4c3ac4b341eb3a344f3035f4ae0df64fd492f4ac (diff) |
Fix bug where admin is able to delete reseller_admin
Changed the code to only allow the super_admin to delete a reseller_admin.
This follows the same logic of user creation, where only the super_admin
can create a reseller_admin.
Also, took the opportunity to refactor some code and implemented
get_user_detail method to remove duplicated code
Bug 1260239: https://bugs.launchpad.net/gluster-swift/+bug/1260239
Change-Id: I9e4866cd7ad08698f427846be566ab2364ad4850
Signed-off-by: Thiago da Silva <thiago@redhat.com>
Reviewed-on: http://review.gluster.org/6516
Reviewed-by: Luis Pabon <lpabon@redhat.com>
Tested-by: Luis Pabon <lpabon@redhat.com>
Reviewed-on: http://review.gluster.org/6690
Reviewed-by: pushpesh sharma <psharma@redhat.com>
Tested-by: pushpesh sharma <psharma@redhat.com>
Diffstat (limited to 'gluster/swift/__init__.py')
0 files changed, 0 insertions, 0 deletions