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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user