Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add canReadFromRdpc permission check #86

Open
joneubank opened this issue Mar 13, 2024 · 0 comments
Open

Add canReadFromRdpc permission check #86

joneubank opened this issue Mar 13, 2024 · 0 comments
Assignees
Labels
new-feature Request is a new feature

Comments

@joneubank
Copy link
Member

There should be a function to check if an array of permissions has the ability to read from a specific RDPC. Similar to canWriteToRDPC but checking for READ or WRITE permission.

Detailed Description

Add a function to src/argoRoleChecks.ts called canReadFromRDPC which accepts as arguments an RDPC code and a list of permissions. Return a boolean that indicates if the permissions include the ability to READ or WRITE on that RDPC.

RDPC permissions follow the pattern: RDPC-${rdpcCode}, for example RDPC-TORONTO.READ or RDPC-TORONTO.WRITE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature Request is a new feature
Projects
None yet
Development

No branches or pull requests

2 participants