Skip to content

Commit

Permalink
Merge "Added @check_homepage for obj_perms" into R3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Oct 25, 2016
2 parents aa6f548 + 46ec5de commit a859357
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api-lib/vnc_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1151,6 +1151,7 @@ def set_user_roles(self, roles):
validate user token. Optionally, check token authorization for an object.
rv {'token_info': <token-info>, 'permissions': 'RWX'}
"""
@check_homepage
def obj_perms(self, token, obj_uuid=None):
self._headers['X-USER-TOKEN'] = token
query = 'uuid=%s' % obj_uuid if obj_uuid else ''
Expand Down

0 comments on commit a859357

Please sign in to comment.