gholt / swauth

This is the historical location of Swauth; active development is now at https://github.com/openstack/swauth
45 stars 30 forks source link

Add request.environ[reseller_request] = True if request is coming from an user in .reseller_admin group #50

Closed cschwede closed 11 years ago

cschwede commented 11 years ago

I added this to openstack/swift for tempauth & keystone already, this is the patch for swauth. It sets request.environ[reseller_request] = True if the request is coming from an user in .reseller_admin group which can be used by other middlewares. Currently the account_quota middleware makes use of this.

gholt commented 11 years ago

Thanks!