Merge "Pass the actual target in os-console-auth-tokens policy"

This commit is contained in:
Zuul 2020-04-10 05:21:42 +00:00 committed by Gerrit Code Review
commit b2a2ae1b91
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class ConsoleAuthTokensController(wsgi.Controller):
def _show(self, req, id, rdp_only):
"""Checks a console auth token and returns the related connect info."""
context = req.environ['nova.context']
context.can(cat_policies.BASE_POLICY_NAME)
context.can(cat_policies.BASE_POLICY_NAME, target={})
token = id
if not token: