-
Notifications
You must be signed in to change notification settings - Fork 67
Improve edit user UI for auditors #11895
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
base: main
Are you sure you want to change the base?
Conversation
Code ReviewThank you for working on improving the auditor experience! I've reviewed the changes and have several concerns that need to be addressed. 🔴 Critical Issues1. Security Vulnerability: Policy Check Mismatch (app/views/users/edit.html.erb:124)<% disabled = !policy(@user).update? %>Problem: The def update?
user.admin? || record == user
endHowever, the view should check if auditors can edit, which is defined in the def edit?
user.auditor? || record == user
endImpact: This means auditors can view the edit page (authorized by Recommendation: Either:
2. Removed Onboarding Functionality Without Explanation (app/views/users/edit.html.erb:132-136, 151-155)The PR removes several onboarding-specific UX elements:
Problem: The Impact: New users going through onboarding will see the same generic interface as existing users, losing helpful contextual guidance. Recommendation: Either:
|
|
Code Review for PR 11895: Improve edit user UI for auditors SUMMARY STRENGTHS
POTENTIAL ISSUES
SECURITY PERFORMANCE TEST COVERAGE ADDITIONAL RECOMMENDATIONS
VERDICT |
Summary of the problem
Buttons and form elements weren't disabled for auditors.
Describe your changes