Skip to content

Commit

Permalink
Added @check_homepage for obj_perms
Browse files Browse the repository at this point in the history
It is needed when _srv_root_url is not set

Change-Id: Iaafb5fc64c972a31c7d8d3ff4cf608ff732115be
Closes-Bug: 1626321
  • Loading branch information
sahilsabharwal committed Oct 24, 2016
1 parent 5bcd008 commit 32e1ee8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api-lib/vnc_api.py
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 32e1ee8

Please sign in to comment.