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

Setup basic access control framework #64

Merged
merged 15 commits into from
Jul 26, 2023
Merged

Conversation

RichDom2185
Copy link
Member

@RichDom2185 RichDom2185 commented Jul 22, 2023

Part of #16.

Blocked by #63. Cherry-picked b0f8a30 from #63 so that this PR won't get blocked.

@RichDom2185 RichDom2185 self-assigned this Jul 22, 2023
@github-actions
Copy link

github-actions bot commented Jul 25, 2023

Coverage Status

coverage: 52.058% (-0.8%) from 52.826% when pulling 78362c1 on setup-basic-access-control into d80a907 on main.

Adapted from the users' login provider enum.
Done due to the severity of the lack of implementation (breaks entire
access control framework).
@RichDom2185 RichDom2185 marked this pull request as ready for review July 26, 2023 06:49
@RichDom2185 RichDom2185 enabled auto-merge (squash) July 26, 2023 06:50
@RichDom2185 RichDom2185 changed the title Setup basic access control Setup basic access control framework Jul 26, 2023
@RichDom2185 RichDom2185 merged commit 1ab3086 into main Jul 26, 2023
@RichDom2185 RichDom2185 deleted the setup-basic-access-control branch July 26, 2023 06:51
YaleChen299 pushed a commit that referenced this pull request Jul 26, 2023
* Create basic permissions structs and package

* Create users' permission types

* Create users' permission struct

* Add users' group role to permissions mapper

Some logic depends on user role enums and are thus commented out.

* Add top-level permissions checker

* Refactor role permissions logic

* Handle checking of user authorization from within the role permission
  struct
* Create utility function to return the correct authorization level from
  a specified permission

* Implement CheckPermissions function

* Create users' group role enum

Adapted from the users' login provider enum.

* Integrate Role enum to role permissions check

* Replace TODO with FIXME

Done due to the severity of the lack of implementation (breaks entire
access control framework).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants