summaryrefslogtreecommitdiffstats
path: root/nova/context.py
diff options
context:
space:
mode:
authorDevin Carlen <devin.carlen@gmail.com>2010-10-01 15:08:19 +0000
committerTarmac <>2010-10-01 15:08:19 +0000
commit4d13a8554459638387d772a23fffe6aaaab3348d (patch)
treef8299aef65d76d3e003fe0c42d94c9df66eb5ee9 /nova/context.py
parentc9cb22f87561fad4ba57865d8a614ca024393f13 (diff)
parent4b3d4eb51a5d927a8eecdca550e04fc699443d21 (diff)
downloadnova-4d13a8554459638387d772a23fffe6aaaab3348d.tar.gz
nova-4d13a8554459638387d772a23fffe6aaaab3348d.tar.xz
nova-4d13a8554459638387d772a23fffe6aaaab3348d.zip
Refactor sqlalchemy api to perform contextual authorization.
All database calls now examine the context object for information about what kind of user is accessing the data. If an administrator is accessing, full privileges are granted. If a normal user is accessing, then checks are made to ensure that the user does indeed have the rights to the data. Also refactored NovaBase and removed several methods since they would have to be changed when we move away from sqlalchemy models and begin using sqlalchemy table definitions.
Diffstat (limited to 'nova/context.py')
0 files changed, 0 insertions, 0 deletions