Skip to content

Commit

Permalink
Merge pull request #79 from stuartcampbell/missing-service-accounts
Browse files Browse the repository at this point in the history
Add tests for missing service accounts
  • Loading branch information
danielballan committed May 16, 2024
2 parents b155f3f + e7cff16 commit 1378127
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/nsls2api/services/beamline_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,17 @@ async def proposal_directory_skeleton(name: str):

service_usernames = await service_accounts(name)

users_acl.append({f"{service_usernames.ioc}": "rw"})
if service_usernames.ioc is not None:
users_acl.append({f"{service_usernames.ioc}": "rw"})

users_acl.append({"softioc": "rw"})
users_acl.append({f"{service_usernames.bluesky}": "rw"})
users_acl.append({f"{service_usernames.workflow}": "r"})

if service_usernames.bluesky is not None:
users_acl.append({f"{service_usernames.bluesky}": "rw"})

if service_usernames.workflow is not None:
users_acl.append({f"{service_usernames.workflow}": "r"})

users_acl.append({"nsls2data": "r"})

groups_acl.append({f"{await custom_data_admin_group(name)}": "r"})
Expand Down

0 comments on commit 1378127

Please sign in to comment.