Skip to content

Commit

Permalink
Merge "Multi tenancy with rbac should behave similar to MT in case of…
Browse files Browse the repository at this point in the history
… non existent object"
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Jan 9, 2016
2 parents 95fac65 + 485e945 commit 2351540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/api-server/vnc_perms.py
Expand Up @@ -76,7 +76,7 @@ def validate_perms_rbac(self, request, obj_uuid, mode=PERMS_R):
try:
perms2 = self._server_mgr._db_conn.uuid_to_obj_perms2(obj_uuid)
except NoIdError:
return (False, err_msg)
return (True, '')

user, roles = self.get_user_roles(request)
is_admin = 'admin' in [x.lower() for x in roles]
Expand Down

0 comments on commit 2351540

Please sign in to comment.