-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[PM-2730] Add missing hide-passwords permission to api models #3125
[PM-2730] Add missing hide-passwords permission to api models #3125
Conversation
No New Or Fixed Issues Found |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Ty!
…ermission-to-api-models
…ls/pm-2730/add-missing-hide-passwords-permission-to-api-models
…ls/pm-2730/add-missing-hide-passwords-permission-to-api-models
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just made these changes myself and was like "hmm maybe I should check Jira for an existing ticket before opening a PR" - lo and behold. 😁
Here are a couple of changes I made locally, I'd appreciate it if you could include them in this PR.
src/Api/Auth/Models/Public/AssociationWithPermissionsBaseModel.cs
Outdated
Show resolved
Hide resolved
src/Api/Auth/Models/Public/Request/AssociationWithPermissionsRequestModel.cs
Outdated
Show resolved
Hide resolved
src/Api/Auth/Models/Public/AssociationWithPermissionsBaseModel.cs
Outdated
Show resolved
Hide resolved
…/pm-2730/add-missing-hide-passwords-permission-to-api-models
Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
…api-models' of https://github.com/bitwarden/server into tools/pm-2730/add-missing-hide-passwords-permission-to-api-models
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New changes LGTM!
src/Api/Auth/Models/Public/Request/AssociationWithPermissionsRequestModel.cs
Outdated
Show resolved
Hide resolved
…equestModel.cs Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
…/pm-2730/add-missing-hide-passwords-permission-to-api-models
616e2fa
@JaredSnider-Bitwarden @eliykat Had to pull in main again to fix conflicts after #3584 got merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving for @eliykat since it doesn't seem like anything changed from your merge.
Type of change
Objective
When trying to create or update a collection via the public api, it was possibly to set the read-only permission, but you couldn't set the hide-passwords permission.
This adds the property to the
AssociationWithPermissions
-models so it can be set.Props to @r-tome for verifying my findings.
Code changes
Before you submit
dotnet format --verify-no-changes
) (required)