Merge "Fix docstrings in enforce() and check() policy methods"

This commit is contained in:
Jenkins 2014-07-09 23:41:16 +00:00 committed by Gerrit Code Review
commit 4829deeae1
1 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ class Enforcer(object):
:param context: Glance request context
:param action: String representing the action to be checked
:param object: Dictionary representing the object of the action.
:param target: Dictionary representing the object of the action.
:raises: `glance.common.exception.Forbidden`
:returns: A non-False value if access is allowed.
"""
@ -147,7 +147,7 @@ class Enforcer(object):
:param context: Glance request context
:param action: String representing the action to be checked
:param object: Dictionary representing the object of the action.
:param target: Dictionary representing the object of the action.
:returns: A non-False value if access is allowed.
"""
return self._check(context, action, target)