Add policy checking for transfer create/accept.

This patch adds policy checks for transfer create/accept
as well as adding the associated default policy.  In addition
we add the wrap in the volume/api accept_transfer method.

Fixes bug: 1187910

Change-Id: I599ac0a95cea1605380d4595a1f21023fbcfb6f1
This commit is contained in:
John Griffith
2013-06-05 13:57:29 -06:00
parent aa7fde57a3
commit db40ad11f1
4 changed files with 19 additions and 2 deletions

View File

@@ -518,6 +518,7 @@ class API(base.Base):
connector,
force)
@wrap_check_policy
def accept_transfer(self, context, volume):
return self.volume_rpcapi.accept_transfer(context,
volume)