Skip to content

Commit 1238a5e

Browse files
committed
fix: 🐛 Allow users to sign ni to any org via API key
1 parent 64f6182 commit 1238a5e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyflask/manageDatasets/manage_datasets.py

+2
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,12 @@ def bf_add_account_api_key(keyname, key, secret):
182182
try:
183183
org_id = get_user_information(token)["preferredOrganization"]
184184

185+
''' Commented out as users should be able to sign in to non-sparc organizations using an API key
185186
if org_id != "N:organization:618e8dd9-f8d2-4dc4-9abb-c6aaab2e78a0":
186187
abort(403,
187188
"Please check that your account is within the SPARC Organization"
188189
)
190+
'''
189191

190192
if not config.has_section("global"):
191193
config.add_section("global")

0 commit comments

Comments
 (0)