fix: get_apiusers cache key missing orgid causing cross-org data leak
This commit is contained in:
parent
d67cc0b0da
commit
4360f34576
@ -81,7 +81,7 @@ class UAPIData:
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
async def get_apiusers(self, appid, orgid=None):
|
async def get_apiusers(self, appid, orgid=None):
|
||||||
key = appid
|
key = f'{appid}.{orgid}' if orgid else str(appid)
|
||||||
if _cache_enabled():
|
if _cache_enabled():
|
||||||
d = self.org_users.get(key)
|
d = self.org_users.get(key)
|
||||||
if d:
|
if d:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user