Merge "Modify the docstring of method 'check_is_admin'"

This commit is contained in:
Zuul 2017-11-15 13:02:00 +00:00 committed by Gerrit Code Review
commit 788a3fd860

View File

@ -82,7 +82,10 @@ class Enforcer(object):
return self._check(context, _action, _target, self.exc, action=action)
def check_is_admin(self, context):
"""Whether or not roles contains 'admin' role according to policy.json.
"""Whether or not is admin according to policy.json.
By default the rule will check whether or not roles contains
'admin' role and is admin project.
:param context: Heat request context
:returns: A non-False value if the user is admin according to policy