-
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-15938] - Restrict viewing hidden input based on permission #13016
base: main
Are you sure you want to change the base?
Conversation
New Issues (10)Checkmarx found the following issues in this Pull Request
|
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found.
Additional details and impacted files@@ Coverage Diff @@
## main #13016 +/- ##
==========================================
- Coverage 35.20% 35.11% -0.09%
==========================================
Files 2992 2990 -2
Lines 90670 91078 +408
Branches 16964 17051 +87
==========================================
+ Hits 31918 31980 +62
- Misses 56288 56605 +317
- Partials 2464 2493 +29 ☔ View full report in Codecov by Sentry. |
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.
Changes to the input directive were required in order to allow a disabled prop to be string or boolean.
At a high level, why is this change needed?
@willmartian The change was made to allow setting a
as opposed to
With the current implementation the first example doesn't work, the input isn't disabled. The second example works but unfortunately we need to be able to conditionally set it to satisfy the requirements of the ticket. |
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-15938
📔 Objective
This PR is a follow-up to the previous PR that was too restrictive and disabled all custom fields for users with
except password
permission, while this PR only disables hidden fields.Changes to the input directive were required in order to allow a
disabled
prop to be string or boolean. This change has the drawback of requiring allbitInput
s to be disabled individually and cannot be disabled at a form level. Feedback would be greatly appreciated on how this could be done in a less disruptive way.eg.
<input bitInput disabled />
or
<input bitInput [disabled]='disabled' />
📸 Screenshots
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes