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 Org user revoke feature #2698

Merged
merged 1 commit into from
Sep 4, 2022

Conversation

BlackDex
Copy link
Collaborator

This PR adds a the new v2022.8.x revoke feature which allows an
organization owner or admin to revoke access for one or more users.

This PR also fixes several permissions and policy checks which were faulty.

  • Modified some functions to use DB Count features instead of iter/count aftwards.
  • Rearanged some if statements (faster matching or just one if instead of nested if's)
  • Added and fixed several policy checks where needed
  • Some small updates on some response models
  • Made some functions require an enum instead of an i32

NOTE:
Please look at this PR carefully, I think i have done all the tests regarding the changed policy validation. But I could have missed a situation of course.

Also this PR is needed to use the v2022.8.x version of the web-vault: dani-garcia/bw_web_builds#77

This PR adds a the new v2022.8.x revoke feature which allows an
organization owner or admin to revoke access for one or more users.

This PR also fixes several permissions and policy checks which were faulty.

- Modified some functions to use DB Count features instead of iter/count aftwards.
- Rearanged some if statements (faster matching or just one if instead of nested if's)
- Added and fixed several policy checks where needed
- Some small updates on some response models
- Made some functions require an enum instead of an i32
@dani-garcia dani-garcia merged commit 7598997 into dani-garcia:main Sep 4, 2022
@BlackDex BlackDex deleted the org-user-revoke-access branch September 9, 2022 08:43
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