Skip to content

Commit

Permalink
Multi tenancy with rbac should behave similar to MT in case of non ex…
Browse files Browse the repository at this point in the history
…istent object

Change-Id: I000a973ed85b5d09d726830cda41a00d0b4e398e
Closes-Bug: #1530104
  • Loading branch information
Senthilnathan Murugappan committed Jan 8, 2016
1 parent d9195d1 commit 485e945
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 485e945

Please sign in to comment.