With this change is the is_admin parameter is set to True when
creating a context, the is_advsvc property is set to True as well,
without executing a pointless check with policy engine.
Closes-Bug: #
1450244
Change-Id: I0a21a82692665599260d07c00c55df18fc926eb5
self.timestamp = timestamp
self._session = None
self.roles = roles or []
- self.is_advsvc = policy.check_is_advsvc(self)
+ self.is_advsvc = self.is_admin or policy.check_is_advsvc(self)
if self.is_admin is None:
self.is_admin = policy.check_is_admin(self)
elif self.is_admin and load_admin_roles: