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: I68f76d812d013b0e323f8a9ad498a12e888ec7f0
Closes-Bug: 1626321
  • Loading branch information
sahilsabharwal committed Oct 24, 2016
1 parent 202e2ac commit 35cecc2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api-lib/vnc_api.py
Expand Up @@ -1204,6 +1204,7 @@ def set_user_roles(self, roles):
self._headers['X-API-ROLE'] = (',').join(roles)
#end set_user_roles

@check_homepage
def obj_perms(self, token, obj_uuid=None):
"""
validate user token. Optionally, check token authorization for an object.
Expand Down

0 comments on commit 35cecc2

Please sign in to comment.