Skip to content

Commit 08702dd

Browse files
committed
fix: TT-393 USERID Variable conver to string
1 parent ee50bfd commit 08702dd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

utils/azure_users.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ class MSConfig:
2323
SECRET = os.environ.get('MS_SECRET')
2424
SCOPE = os.environ.get('MS_SCOPE')
2525
ENDPOINT = os.environ.get('MS_ENDPOINT')
26-
USERID = json.loads(os.environ.get('USERID'))
27-
26+
#USERID = json.loads(os.environ.get('USERID'))
27+
USERID = os.environ.get('USERID').split(",")
2828

2929
class BearerAuth(requests.auth.AuthBase):
3030
def __init__(self, access_token):
@@ -264,7 +264,6 @@ def get_groups_and_users(self):
264264
)
265265
result = list(map(parse_item, response.json()['value']))
266266
result[0][1].extend(self.config.USERID)
267-
268267
return result
269268

270269
def is_user_in_group(self, user_id, data: dict):

0 commit comments

Comments
 (0)